mirror of
https://github.com/bellingcat/snscrape.git
synced 2026-06-12 20:38:29 +03:00
Fix crash in recursive tweet scraping
Introduced by 3e297c9a
Fixes #684
This commit is contained in:
@@ -1813,7 +1813,7 @@ class TwitterTweetScraper(_TwitterAPIScraper):
|
|||||||
queue.append(self._tweetId)
|
queue.append(self._tweetId)
|
||||||
while queue:
|
while queue:
|
||||||
tweetId = queue.popleft()
|
tweetId = queue.popleft()
|
||||||
thisPagParams = copy.deepcopy(paginationVariables)
|
thisPagParams = copy.deepcopy(paginationParams)
|
||||||
thisPagParams['variables']['focalTweetId'] = str(tweetId)
|
thisPagParams['variables']['focalTweetId'] = str(tweetId)
|
||||||
thisParams = copy.deepcopy(thisPagParams)
|
thisParams = copy.deepcopy(thisPagParams)
|
||||||
del thisPagParams['variables']['cursor'], thisPagParams['variables']['referrer']
|
del thisPagParams['variables']['cursor'], thisPagParams['variables']['referrer']
|
||||||
|
|||||||
Reference in New Issue
Block a user