From bb226e54a97bde269b7852b7381a055ee8aa5514 Mon Sep 17 00:00:00 2001 From: JC Francois Date: Sat, 21 Dec 2019 12:05:54 +0100 Subject: [PATCH] Added handler (doing nothing) for tweet-poi-geo-text --- twoot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/twoot.py b/twoot.py index f0575af..e5e1d26 100755 --- a/twoot.py +++ b/twoot.py @@ -94,6 +94,10 @@ def cleanup_tweet_text(tt_iter): # convert string to hex value of unicode character tweet_text += chr(int(uni_char, 16)) + # elif tag is a geographical point of interest + elif tag.name == 'span' and tag['class'][0] == 'tweet-poi-geo-text': + pass + else: print("*** WARNING: No handler for tag in twitter text: " + tag.prettify())