mirror of
https://github.com/Bunsly/JobSpy.git
synced 2026-03-05 03:54:31 -08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7b29d43a2 | ||
|
|
6f1490458c | ||
|
|
6bb7d81ba8 |
12
README.md
12
README.md
@@ -216,10 +216,8 @@ You can specify the following countries when searching on Indeed (use the exact
|
|||||||
## Frequently Asked Questions
|
## Frequently Asked Questions
|
||||||
|
|
||||||
---
|
---
|
||||||
|
**Q: Why is Indeed giving unrelated roles?**
|
||||||
**Q: Encountering issues with your queries?**
|
**A:** Indeed is searching each one of your terms e.g. software intern, it searches software OR intern. Try search_term='"software intern"' in quotes for stricter searching
|
||||||
**A:** Try reducing the number of `results_wanted` and/or broadening the filters. If problems
|
|
||||||
persist, [submit an issue](https://github.com/Bunsly/JobSpy/issues).
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -230,3 +228,9 @@ persist, [submit an issue](https://github.com/Bunsly/JobSpy/issues).
|
|||||||
- Try using the proxies param to change your IP address.
|
- Try using the proxies param to change your IP address.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
**Q: Encountering issues with your queries?**
|
||||||
|
**A:** Try reducing the number of `results_wanted` and/or broadening the filters. If problems
|
||||||
|
persist, [submit an issue](https://github.com/Bunsly/JobSpy/issues).
|
||||||
|
|
||||||
|
---
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "python-jobspy"
|
name = "python-jobspy"
|
||||||
version = "1.1.63"
|
version = "1.1.66"
|
||||||
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"
|
||||||
|
|||||||
@@ -364,8 +364,8 @@ class IndeedScraper(Scraper):
|
|||||||
{what}
|
{what}
|
||||||
{location}
|
{location}
|
||||||
limit: 100
|
limit: 100
|
||||||
sort: DATE
|
|
||||||
{cursor}
|
{cursor}
|
||||||
|
sort: RELEVANCE
|
||||||
{filters}
|
{filters}
|
||||||
) {{
|
) {{
|
||||||
pageInfo {{
|
pageInfo {{
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ class LinkedInScraper(Scraper):
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
response = self.session.get(
|
response = self.session.get(
|
||||||
f"{self.base_url}/jobs-guest/jobs/api/jobPosting/{job_id}", timeout=5
|
f"{self.base_url}/jobs/view/{job_id}", timeout=5
|
||||||
)
|
)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
except:
|
except:
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user