Force TwitterThreadScraper to fetch the old design (take 2)

This commit is contained in:
JustAnotherArchivist
2020-08-12 17:19:42 +00:00
parent bf229414ba
commit 588ec415ff

View File

@@ -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)