fix pagination in scraper

pull/977/head
Ben Parsons 5 years ago
parent 78a0843758
commit 5ae8a8bcfd

@ -38,7 +38,7 @@ def getpage(url):
pagecount = 1
for link in resp.links.values():
if link['rel'] == 'last':
pagecount = int(re.search('page=(.+?)', link['url']).group(1))
pagecount = int(re.search('page=(.+)', link['url']).group(1))
val = resp.json()
if not isinstance(val, list):

Loading…
Cancel
Save