diff --git a/.gitignore b/.gitignore index 6a191b2..01099a2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,6 @@ **/.DS_Store *.pyc .env -dist \ No newline at end of file +dist +jobs.csv +.vscode/launch.json diff --git a/main.py b/main.py new file mode 100644 index 0000000..9b4f5fa --- /dev/null +++ b/main.py @@ -0,0 +1,18 @@ +import csv +from jobspy import scrape_jobs + +jobs = scrape_jobs( + site_name=["indeed", "linkedin", "zip_recruiter", "glassdoor", "google"], + search_term="software engineer", + google_search_term="software engineer jobs near Tel Aviv Israel since yesterday", + location="Tel Aviv, israel", + results_wanted=20, + hours_old=72, + country_indeed='israel', + + # linkedin_fetch_description=True # gets more info such as description, direct job url (slower) + # proxies=["208.195.175.46:65095", "208.195.175.45:65095", "localhost"], +) +print(f"Found {len(jobs)} jobs") +print(jobs.head()) +jobs.to_csv("jobs.csv", quoting=csv.QUOTE_NONNUMERIC, escapechar="\\", index=False) # to_excel \ No newline at end of file diff --git a/src/jobspy/jobs/__init__.py b/src/jobspy/jobs/__init__.py index c51839c..216c5db 100644 --- a/src/jobspy/jobs/__init__.py +++ b/src/jobspy/jobs/__init__.py @@ -87,7 +87,7 @@ class Country(Enum): INDIA = ("india", "in", "co.in") INDONESIA = ("indonesia", "id") IRELAND = ("ireland", "ie", "ie") - ISRAEL = ("israel", "il") + ISRAEL = ("israel", "il","com") ITALY = ("italy", "it", "it") JAPAN = ("japan", "jp") KUWAIT = ("kuwait", "kw")