From b43c3accd011990fca78b547e24132ac02a30d51 Mon Sep 17 00:00:00 2001 From: dand4 Date: Thu, 23 May 2019 23:09:07 +0100 Subject: [PATCH] Update scraper.py --- scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper.py b/scraper.py index 7016422..6cf3d33 100644 --- a/scraper.py +++ b/scraper.py @@ -126,7 +126,7 @@ def get_start_range(what = WHAT, where = WHERE): search_count = content.text.lstrip() #problem area: # Extract total number of jobs found from the search_count string. - pattern = r'\s[0-9]+$' + pattern = r'of\s[0-9,]+jobs$' total_jobs = int(re.findall(pattern, search_count)[0].lstrip()) # Set start range.