mirror of
https://github.com/Bunsly/JobSpy.git
synced 2026-03-04 19:44:30 -08:00
fix: return type for get_description
This commit is contained in:
@@ -171,12 +171,12 @@ class ZipRecruiterScraper(Scraper):
|
|||||||
return job_response
|
return job_response
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_description(cls, job_page_url: str, session: tls_client.Session) -> str:
|
def get_description(cls, job_page_url: str, session: tls_client.Session) -> Tuple[Optional[str], str]:
|
||||||
"""
|
"""
|
||||||
Retrieves job description by going to the job page url
|
Retrieves job description by going to the job page url
|
||||||
:param job_page_url:
|
:param job_page_url:
|
||||||
:param session:
|
:param session:
|
||||||
:return: description or None
|
:return: description or None, response url
|
||||||
"""
|
"""
|
||||||
response = session.get(
|
response = session.get(
|
||||||
job_page_url, headers=ZipRecruiterScraper.headers(), allow_redirects=True
|
job_page_url, headers=ZipRecruiterScraper.headers(), allow_redirects=True
|
||||||
|
|||||||
Reference in New Issue
Block a user