DEV Community

Discussion on: Sentiment analysis on Trump's tweets using Python 🐍

Collapse
 
rodolfoferro profile image
Rodolfo Ferro

This is an interesting question.

If you want to count something like this in real time, you would need to modify the way you're consuming the API (rest) and create a listener (you can still do that with Tweepy). That's what I would do, I'd create a specific listener for Trump's tweets and use threads to count for certain time likes and retweets for a new tweet.

Does this answer help? I can try to be more explicit. :)

Collapse
 
fredericpierron profile image
Fred.

Yes I understand the idea. This would be a very useful tool to track false popular account.

Thread Thread
 
rodolfoferro profile image
Rodolfo Ferro

This might help: github.com/RodolfoFerro/TwitterBot...

You can find more info in the documentation: tweepy.readthedocs.io/en/v3.5.0/st...

Hope this complements my previous answer! 👍🏼