Skip to content

Commit

Permalink
Fix Google job search
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 d52e366 commit c7603b5
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 c7603b5

Please sign in to comment.