mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-03-27 07:56:48 +00:00
quote is an 'a' tag
This commit is contained in:
parent
60f7054fac
commit
066f737a61
4
twoot.py
4
twoot.py
@ -356,9 +356,9 @@ def main(argv):
|
|||||||
tweet_text += process_media_body(tt_iter)
|
tweet_text += process_media_body(tt_iter)
|
||||||
|
|
||||||
# Process quote: append link to tweet_text
|
# Process quote: append link to tweet_text
|
||||||
quote_div = status.find('div', class_='quote-link')
|
quote_div = status.find('a', class_='quote-link')
|
||||||
if quote_div is not None:
|
if quote_div is not None:
|
||||||
tweet_text += '\n twitter.com' + quote_div.get('href').strip('#m')
|
tweet_text += '\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')
|
card_class = status.find('a', class_='card-container')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user