created main

fixed israel search on glasdoor and added to gitignore the csv and debug json
pull/231/head
Yariv Menachem 2024-12-08 17:30:06 +02:00
parent 04032a0f91
commit 53a840e53e
3 changed files with 22 additions and 2 deletions

2
.gitignore vendored
View File

@ -8,3 +8,5 @@
*.pyc
.env
dist
jobs.csv
.vscode/launch.json

18
main.py Normal file
View File

@ -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

View File

@ -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")