From 53a840e53ed81de3c744b627c2dcc224ac368511 Mon Sep 17 00:00:00 2001 From: Yariv Menachem Date: Sun, 8 Dec 2024 17:30:06 +0200 Subject: [PATCH] created main fixed israel search on glasdoor and added to gitignore the csv and debug json --- .gitignore | 4 +++- main.py | 18 ++++++++++++++++++ src/jobspy/jobs/__init__.py | 2 +- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 main.py 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")