mirror of https://github.com/Bunsly/JobSpy
parent
6bb7d81ba8
commit
6f1490458c
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "python-jobspy"
|
name = "python-jobspy"
|
||||||
version = "1.1.64"
|
version = "1.1.65"
|
||||||
description = "Job scraper for LinkedIn, Indeed, Glassdoor & ZipRecruiter"
|
description = "Job scraper for LinkedIn, Indeed, Glassdoor & ZipRecruiter"
|
||||||
authors = ["Zachary Hampton <zachary@bunsly.com>", "Cullen Watson <cullen@bunsly.com>"]
|
authors = ["Zachary Hampton <zachary@bunsly.com>", "Cullen Watson <cullen@bunsly.com>"]
|
||||||
homepage = "https://github.com/Bunsly/JobSpy"
|
homepage = "https://github.com/Bunsly/JobSpy"
|
||||||
|
|
|
@ -200,7 +200,7 @@ class ZipRecruiterScraper(Scraper):
|
||||||
script_tag = soup.find("script", type="application/json")
|
script_tag = soup.find("script", type="application/json")
|
||||||
if script_tag:
|
if script_tag:
|
||||||
job_json = json.loads(script_tag.string)
|
job_json = json.loads(script_tag.string)
|
||||||
job_url_val = job_json["model"]["saveJobURL"]
|
job_url_val = job_json["model"].get("saveJobURL", "")
|
||||||
m = re.search(r"job_url=(.+)", job_url_val)
|
m = re.search(r"job_url=(.+)", job_url_val)
|
||||||
if m:
|
if m:
|
||||||
job_url_direct = m.group(1)
|
job_url_direct = m.group(1)
|
||||||
|
|
Loading…
Reference in New Issue