mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-28 11:48:36 +01:00
fix pagination in scraper
This commit is contained in:
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…
Reference in a new issue