-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
49 lines (37 loc) · 1.62 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import naukri
import monster
import indeed
import times_jobs
import shine
import linkedin
import pandas as pd
"""
This takes info from user and returns scraped data from
Naukri, monster, indeed, timejobs, shine and linkedin
"""
## Download the chromedriver from : https://chromedriver.chromium.org/
## And give the location of executable here
PATH = '/chromedriver.exe'
naukri.PATH = PATH
monster.PATH = PATH
indeed.PATH = PATH
times_jobs.PATH = PATH
shine.PATH = PATH
linkedin.PATH = PATH
def main(dataframe):
skill = input('Enter a skill: ')
location = input('Enter location: ')
experience = int(input('Enter experience in years: '))
dataframe = naukri.naukri_scraper(dataframe, sk=skill, exp=experience, loc=location)
dataframe = monster.monster_scraper(dataframe, sk=skill, exp=experience, loc=location)
dataframe = indeed.indeed_scraper(dataframe, sk=skill, exp=experience, loc=location)
dataframe = times_jobs.timesJobs_scraper(dataframe, sk=skill, exp=experience, loc=location)
dataframe = shine.shine_scraper(dataframe, sk=skill, exp=experience, loc=location)
dataframe = linkedin.linkedin_scraper(dataframe, sk=skill, loc=location)
dataframe.to_csv("Jobs.csv",index=False)
if __name__ == '__main__':
dataframe = pd.DataFrame(columns = ['Recruiter name', 'Recruter tel', 'Recuiter mail id',
'Company website', 'Job location', 'Company name',
'Skill set required', 'Description url', 'Salary offered',
'Experience required', 'Qualification required'])
main(dataframe)