From af15eade0f59c17c4867baffe0e1dc05033b06c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Thu, 29 Jul 2021 10:44:38 +0200 Subject: Add twitter quoted tweet --- twitter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/twitter.py b/twitter.py index 87dfc68..40cd5ac 100755 --- a/twitter.py +++ b/twitter.py @@ -141,7 +141,9 @@ def parse_tweet(user, tweet, included_tweets, included_media): title, description, ref_tweet.get("entities", {}).get("urls", []) ) elif rt["type"] == "replied_to": - description += f"

This was a reply to {rt['id']}" + description += "
This was a reply to:
" + rt["id"] + elif rt["type"] == "quoted": + description += '
Quoted tweet:
' + rt["text"] else: description += f"

Unknown reference type: {rt['type']}" -- cgit v1.2.3