MartinKBeck / TwitterScraper

Repository containing all files relevant to my basic and advanced tweet scraping articles.
196 stars 117 forks source link

Number of likes and retweets for each tweet #2

Closed JSMboli closed 3 years ago

JSMboli commented 3 years ago

Is it possible to scrape the number of likes and retweets for each tweet? Thank you.

MartinBeckUT commented 3 years ago

Checkout the medium article I wrote for scraping with snscrape. I talk about all the attributes available in the tweet object with snscrape. With likes and retweets, you can access them in the Python wrapper with tweet.likeCount and tweet.retweetCount. Otherwise if you're scraping with the terminal you should still be able to access the same attributes, they're named the same.