mirror of
https://github.com/bellingcat/snscrape.git
synced 2026-06-09 19:08:28 +03:00
Force TwitterThreadScraper to fetch the old design (take 2)
This commit is contained in:
@@ -261,7 +261,7 @@ class TwitterThreadScraper(TwitterCommonScraper):
|
||||
self._tweetID = tweetID
|
||||
|
||||
def get_items(self):
|
||||
headers = {'User-Agent': f'Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.18'}
|
||||
headers = {'User-Agent': f'Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.18 Bot'}
|
||||
|
||||
# Fetch the page of the last tweet in the thread
|
||||
r = self._get(f'https://twitter.com/user/status/{self._tweetID}', headers = headers)
|
||||
|
||||
Reference in New Issue
Block a user