From 1acc33f7e73383df69ba226ed97e7188802ffbf4 Mon Sep 17 00:00:00 2001 From: JC Francois Date: Sat, 15 Feb 2020 17:06:56 +0100 Subject: [PATCH] Removed excess / in original tweet link --- twoot.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/twoot.py b/twoot.py index 40fa58c..6f32e2c 100755 --- a/twoot.py +++ b/twoot.py @@ -248,7 +248,7 @@ def main(argv): # Extract user name author_account = str(tmt.find('span', class_='username').span.next_sibling).strip('\n ') - # TODO: Extract time stamp + # Extract time stamp time_string = tmt.find('div', class_='metadata').a.get_text() timestamp = datetime.datetime.strptime(time_string, '%I:%M %p - %d %b %Y').timestamp() @@ -262,10 +262,7 @@ def main(argv): tweet_text = 'RT from ' + author + '(@' + author_account + '\n\n)' + tweet_text # Add footer with link to original tweet - tweet_text += '\n\nOriginal tweet : https://twitter.com/' + tweet_id - - # DEBUG: STOP HERE - #sys.exit(1) + tweet_text += '\n\nOriginal tweet : https://twitter.com' + tweet_id photos = [] # The no_js version of twitter only shows one photo