Removed excess / in original tweet link

This commit is contained in:
JC Francois 2020-02-15 17:06:56 +01:00
parent 266461a6cc
commit 1acc33f7e7

View File

@ -248,7 +248,7 @@ def main(argv):
# Extract user name # Extract user name
author_account = str(tmt.find('span', class_='username').span.next_sibling).strip('\n ') 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() time_string = tmt.find('div', class_='metadata').a.get_text()
timestamp = datetime.datetime.strptime(time_string, '%I:%M %p - %d %b %Y').timestamp() 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 tweet_text = 'RT from ' + author + '(@' + author_account + '\n\n)' + tweet_text
# Add footer with link to original tweet # Add footer with link to original tweet
tweet_text += '\n\nOriginal tweet : https://twitter.com/' + tweet_id tweet_text += '\n\nOriginal tweet : https://twitter.com' + tweet_id
# DEBUG: STOP HERE
#sys.exit(1)
photos = [] # The no_js version of twitter only shows one photo photos = [] # The no_js version of twitter only shows one photo