mirror of https://github.com/Bunsly/JobSpy
created main
fixed israel search on glasdoor and added to gitignore the csv and debug jsonpull/231/head
parent
04032a0f91
commit
53a840e53e
|
@ -8,3 +8,5 @@
|
|||
*.pyc
|
||||
.env
|
||||
dist
|
||||
jobs.csv
|
||||
.vscode/launch.json
|
||||
|
|
|
@ -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
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue