Fix pagination on profile pages

This commit is contained in:
JustAnotherArchivist
2020-09-01 03:23:45 +00:00
parent d9572ec450
commit 072519f539

View File

@@ -193,7 +193,7 @@ class TwitterAPIScraper(TwitterCommonScraper):
else:
continue
for entry in entries:
if entry['entryId'] == 'sq-cursor-bottom':
if entry['entryId'] == 'sq-cursor-bottom' or entry['entryId'].startswith('cursor-bottom-'):
newCursor = entry['content']['operation']['cursor']['value']
if not newCursor or newCursor == cursor:
# End of pagination