This commit is contained in:
jeancf 2023-07-19 18:31:50 +02:00
parent 4200c12204
commit a50a077cd3

View File

@ -598,7 +598,7 @@ def process_media_body(tt_iter):
tweet_text += url
else:
logging.warning("No handler for tag in twitter text: " + tag.prettify())
logging.warning("No handler for tag %s in twitter text: ", tag.prettify())
return tweet_text
@ -954,7 +954,6 @@ def main(argv):
# Select random nitter instance to fetch updates from
nitter_url = 'https://' + TOML['options']['nitter_instances'][random.randint(0, len(TOML['options']['nitter_instances']) - 1)]
# Load twitter page of user
soup, timeline = get_timeline(nitter_url)
@ -1044,7 +1043,7 @@ def main(argv):
if quote_div is not None:
tweet_text += substitute_source('\n\nhttps://twitter.com' + quote_div.get('href').strip('#m'))
# Process card : extract image if necessary
# Process card: extract image if necessary
card_class = status.find('a', class_='card-container')
if card_class is not None:
photos.extend(process_card(nitter_url, card_class))