mirror of
https://github.com/bellingcat/snscrape.git
synced 2026-06-08 02:28:29 +03:00
Fix pagination on profile pages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user