Projects STRLCPY snscrape Commits e2d92230
🤬
  • ■ ■ ■ ■ ■ ■
    snscrape/modules/twitter.py
    skipped 873 lines
    874 874   kwargs['cashtags'] = [o['text'] for o in tweet['entities']['symbols']]
    875 875   if card:
    876 876   kwargs['card'] = card
    877  -<<<<<<< HEAD
    878  - # Try to convert the URL to the non-shortened/t.co one
    879  - try:
    880  - i = kwargs['tcooutlinks'].index(card.url)
    881  - except ValueError:
    882  - _logger.warning('Could not find card URL in tcooutlinks')
    883  - except KeyError:
    884  - # retweets are missing this attribute
    885  - pass
    886  - else:
    887  - card.url = kwargs['outlinks'][i]
    888  -=======
    889 877   if hasattr(card, 'url') and '//t.co/' in card.url:
    890 878   # Try to convert the URL to the non-shortened/t.co one
    891 879   # Retweets inherit the card but not the outlinks; try to get them from the retweeted tweet instead in that case.
    skipped 3 lines
    895 883   card.url = retweetedTweet.outlinks[retweetedTweet.tcooutlinks.index(card.url)]
    896 884   else:
    897 885   _logger.warning(f'Could not translate t.co card URL on tweet {tweetId}')
    898  ->>>>>>> ed3ea944d177157d688786470c8369198b0ce8ce
    899 886   return Tweet(**kwargs)
    900 887   
    901 888   def _make_medium(self, medium, tweetId):
    skipped 817 lines
Please wait...
Page is in error, reload to recover