Fix crash in recursive tweet scraping

Introduced by 3e297c9a

Fixes #684
This commit is contained in:
JustAnotherArchivist
2023-01-19 16:18:15 +00:00
parent 36e85c54c1
commit b515a66b93

View File

@@ -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']