From 280b972f22d9e5b8212f58af735b6b41236082a8 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Sun, 19 Feb 2023 06:26:35 +0000 Subject: [PATCH] Fix extraction of tweets behind 'offensive' replies button --- snscrape/modules/twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snscrape/modules/twitter.py b/snscrape/modules/twitter.py index 4850b66..01951c2 100644 --- a/snscrape/modules/twitter.py +++ b/snscrape/modules/twitter.py @@ -776,7 +776,7 @@ class _TwitterAPIScraper(snscrape.base.Scraper): newCursor = entryCursor if entryCursorStop is not None: stopOnEmptyResponse = entryCursorStop - elif entry['entryId'].startswith('cursor-showMoreThreadsPrompt-') or entry['entryId'].startswith('cursor-showmorethreads-'): + elif entry['entryId'].startswith('cursor-showmorethreadsprompt-') or entry['entryId'].startswith('cursor-showmorethreads-'): # E.g. 'offensive' replies and 'Show more replies' button promptCursor = entryCursor elif direction is _ScrollDirection.BOTH and bottomCursorAndStop is None and (entry['entryId'] == 'sq-cursor-bottom' or entry['entryId'].startswith('cursor-bottom-')):