mirror of
https://github.com/bellingcat/snscrape.git
synced 2026-06-08 02:28:29 +03:00
Fix warning on card URL translation to include the tweet ID
This commit is contained in:
@@ -862,7 +862,7 @@ class _TwitterAPIScraper(snscrape.base.Scraper):
|
||||
try:
|
||||
i = kwargs['tcooutlinks'].index(card.url)
|
||||
except ValueError:
|
||||
_logger.warning('Could not find card URL in tcooutlinks')
|
||||
_logger.warning(f'Could not find card URL in tcooutlinks on tweet {kwargs["id"]}')
|
||||
else:
|
||||
card.url = kwargs['outlinks'][i]
|
||||
return Tweet(**kwargs)
|
||||
|
||||
Reference in New Issue
Block a user