Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
d4nt committed May 23, 2019
1 parent 7234bbd commit e2f052d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -126,9 +126,9 @@ 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'of\s[0-9,]+\sjobs$'
pattern = r'of\s([0-9,]+)\sjobs$'
print(search_count)
total_jobs = int(re.findall(pattern, search_count)[0].lstrip())
total_jobs = int(re.findall(pattern, search_count)[1].lstrip())

# Set start range.
start_range = list(np.arange(0, total_jobs, 10))
Expand Down

0 comments on commit e2f052d

Please sign in to comment.