pull/45/head
msramalho 2022-06-27 01:07:59 +02:00
rodzic ffe1c425a0
commit 179528562b
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -59,6 +59,7 @@ class TwitterArchiver(Archiver):
return ArchiveResult(status="success", cdn_url=page_cdn, screenshot=screenshot, hash=page_hash, thumbnail=thumbnail, timestamp=tweet.date, title=tweet.content)
def download_alternative(self, url, tweet_id):
# https://stackoverflow.com/a/71867055/6196010
logger.debug(f"Trying twitter hack for {url=}")
hack_url = f"https://cdn.syndication.twimg.com/tweet?id={tweet_id}"
r = requests.get(hack_url)