DEV Community

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

Collapse
 
fredericpierron profile image
Fred. • Edited

Would it be possible to check / detect how many likes comes from the staff of a VIP ? It is said that many politicals manage likes and retweets by asking their support to like and retweet their messages? (not sure to be clear) Through 200 tweets, this would be possible to look at the twitter accounts that like systematically and quickly (as soon as published, like bots do) then substract (or minimize) them from the final evaluation.

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! 👍🏼