Skip to content

Commit

Permalink
Merge pull request #28 from hvudeshi/het#1
Browse files Browse the repository at this point in the history
minor fixes
  • Loading branch information
het-patel99 authored Nov 4, 2021
2 parents 7964f9a + d44a8ea commit 90349cc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Code/Scrapper/Scrapper_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def get_emailing_list(connection):
role = get_role(connection)
no_of_jobs_to_retrieve = 5
match_threshold = get_threshold(connection)
# final_result_linkedIn = sl.get_job_description(connection,resume_skills,all_skills, match_threshold, role, location, no_of_jobs_to_retrieve, data)
final_result_glassdoor = sg.get_job_description(connection,resume_skills,all_skills, match_threshold, role, location, no_of_jobs_to_retrieve, data)
# final_result_indeed = si.get_job_description(connection,resume_skills,all_skills, match_threshold, role, location, no_of_jobs_to_retrieve, data)
# final_result_linkedIn = sl.get_job_description(resume_skills,all_skills, match_threshold, role, location, no_of_jobs_to_retrieve, data)
final_result_glassdoor = sg.get_job_description(resume_skills,all_skills, match_threshold, role, location, no_of_jobs_to_retrieve, data)
# final_result_indeed = si.get_job_description(resume_skills,all_skills, match_threshold, role, location, no_of_jobs_to_retrieve, data)

# final_results = final_result_linkedIn + final_result_glassdoor + final_result_indeed
print(final_result_glassdoor)
Expand Down
2 changes: 1 addition & 1 deletion Code/Scrapper/keyword_extraction_modules.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def get_user_id_to_list_of_job_ids(resume_skills_dict, links_description_dict, db_connection, total_skills, threshold):
def get_user_id_to_list_of_job_ids(resume_skills_dict, links_description_dict, total_skills, threshold):
result_dict = dict()
job_desc_link_and_skills_dict = get_dict_with_list_of_skills_from_description(links_description_dict, total_skills)
for curr_resume in resume_skills_dict:
Expand Down
4 changes: 2 additions & 2 deletions Code/Scrapper/scrapper_glassdoor.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import requests


def get_job_description(connection,resume_skills,all_skills, match_threshold, role, location, no_of_jobs_to_retrieve, data):
def get_job_description(resume_skills,all_skills, match_threshold, role, location, no_of_jobs_to_retrieve, data):
options = Options()
options.add_argument("--window-size-1920,1200")
options.add_argument('--headless')
Expand Down Expand Up @@ -46,7 +46,7 @@ def get_job_description(connection,resume_skills,all_skills, match_threshold, ro
jobs.append(job_description)
final_dict[i] = job_description

final_result = ke.get_user_id_to_list_of_job_ids(resume_skills,final_dict,connection,all_skills,match_threshold)
final_result = ke.get_user_id_to_list_of_job_ids(resume_skills,final_dict,all_skills,match_threshold)

return final_result

4 changes: 2 additions & 2 deletions Code/Scrapper/scrapper_indeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from bs4 import BeautifulSoup
import requests

def get_job_description(connection,resume_skills,all_skills, match_threshold, role, location, no_of_jobs_to_retrieve, data):
def get_job_description(resume_skills,all_skills, match_threshold, role, location, no_of_jobs_to_retrieve, data):
options = Options()
options.add_argument("--window-size-1920,1200")
options.add_argument('--headless')
Expand Down Expand Up @@ -59,6 +59,6 @@ def get_job_description(connection,resume_skills,all_skills, match_threshold, ro
jobs.append(job_description)
final_dict[i] = job_description

final_result=ke.get_user_id_to_list_of_job_ids(resume_skills,final_dict,connection,all_skills,match_threshold)
final_result=ke.get_user_id_to_list_of_job_ids(resume_skills,final_dict,all_skills,match_threshold)

return final_result
4 changes: 2 additions & 2 deletions Code/Scrapper/scrapper_linkedIn.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# Form a function get_job_description fetching details of location, resume skills, match_threshold,Job roles

def get_job_description(connection,resume_skills,all_skills, match_threshold, role, location, no_of_jobs_to_retrieve, data):
def get_job_description(resume_skills,all_skills, match_threshold, role, location, no_of_jobs_to_retrieve, data):
# role = role.replace(' ', '%20')
#Form a dynamic URL to fetch the details using Beautiful soup for the given filters
url = "https://www.linkedin.com/jobs/jobs-in-"+location+"?keywords="+role+"&f_JT=F%2CP&f_E=1%2C3&position=1&pageNum=0"
Expand Down Expand Up @@ -46,6 +46,6 @@ def get_job_description(connection,resume_skills,all_skills, match_threshold, ro

description_dict[dictionary["Job Link"]]=str3

final_result=ke.get_user_id_to_list_of_job_ids(resume_skills,description_dict,connection,all_skills,match_threshold)
final_result=ke.get_user_id_to_list_of_job_ids(resume_skills,description_dict,all_skills,match_threshold)

return final_result

0 comments on commit 90349cc

Please sign in to comment.