From 179528562bda9c3e1d1f4d58650fa7bf6511bb71 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Mon, 27 Jun 2022 01:07:59 +0200 Subject: [PATCH] minor updates --- archivers/twitter_archiver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/archivers/twitter_archiver.py b/archivers/twitter_archiver.py index a874a1d..b70d9f3 100644 --- a/archivers/twitter_archiver.py +++ b/archivers/twitter_archiver.py @@ -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)