From b515a66b937276eafff41cf6b897c53ecf3d54a2 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Thu, 19 Jan 2023 16:18:15 +0000 Subject: [PATCH] Fix crash in recursive tweet scraping Introduced by 3e297c9a Fixes #684 --- 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 1f57887..e961753 100644 --- a/snscrape/modules/twitter.py +++ b/snscrape/modules/twitter.py @@ -1813,7 +1813,7 @@ class TwitterTweetScraper(_TwitterAPIScraper): queue.append(self._tweetId) while queue: tweetId = queue.popleft() - thisPagParams = copy.deepcopy(paginationVariables) + thisPagParams = copy.deepcopy(paginationParams) thisPagParams['variables']['focalTweetId'] = str(tweetId) thisParams = copy.deepcopy(thisPagParams) del thisPagParams['variables']['cursor'], thisPagParams['variables']['referrer']