mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-23 20:11:11 +00:00
Not much
This commit is contained in:
parent
4200c12204
commit
a50a077cd3
5
twoot.py
5
twoot.py
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user