Skip to content

Commit

Permalink
Fix Google job search (#223)
Browse files Browse the repository at this point in the history
The previous regex did not capture all expected matches in the returned content
  • Loading branch information
geffner authored Dec 4, 2024
1 parent e44d13e commit 4e7ac9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobspy/scrapers/google/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def _find_job_info(jobs_data: list | dict) -> list | None:
def _find_job_info_initial_page(html_text: str):
pattern = (
f'520084652":('
+ r"\[(?:[^\[\]]|\[(?:[^\[\]]|\[(?:[^\[\]]|\[[^\[\]]*\])*\])*\])*\])"
+ r"\[.*?\]\s*])\s*}\s*]\s*]\s*]\s*]\s*]"
)
results = []
matches = re.finditer(pattern, html_text)
Expand Down

0 comments on commit 4e7ac9a

Please sign in to comment.