JustAnotherArchivist / snscrape

A social networking service scraper in Python
GNU General Public License v3.0
4.31k stars 698 forks source link

AttributeError: 'Tombstone' object has no attribute 'rawContent' #980

Closed khorg0sh closed 1 year ago

khorg0sh commented 1 year ago

trying to fetch content of the tweet collected using TweetScraper.

JustAnotherArchivist commented 1 year ago

The Twitter scrapers return not only Tweet objects but also Tombstone and TweetRef, which only have a couple fields. Use isinstance to distinguish them or hasattr to check whether a field is present.