mirror of https://github.com/Bunsly/JobSpy
write to mongo
parent
d63d102dbc
commit
02b497fdb4
|
@ -26,12 +26,14 @@ for location in locations:
|
||||||
site_name=["indeed"],
|
site_name=["indeed"],
|
||||||
search_term=title,
|
search_term=title,
|
||||||
location=location,
|
location=location,
|
||||||
results_wanted=30,
|
results_wanted=15,
|
||||||
country_indeed='USA',
|
country_indeed='USA',
|
||||||
# offset=25 # start jobs from an offset (use if search failed and want to continue)
|
# offset=25 # start jobs from an offset (use if search failed and want to continue)
|
||||||
proxy="http://34.120.172.140:8123"
|
proxy="http://34.120.172.140:8123"
|
||||||
# proxy="http://crawler-gost-proxy.jobright-internal.com:8080"
|
# proxy="http://crawler-gost-proxy.jobright-internal.com:8080"
|
||||||
)
|
)
|
||||||
|
jobs_list = jobs.to_dict(orient='records')
|
||||||
|
print(jobs_list)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f'Error when process: [{location}][{title}]')
|
print(f'Error when process: [{location}][{title}]')
|
||||||
print(e)
|
print(e)
|
||||||
|
|
Loading…
Reference in New Issue