Recently while working on a client’s project, we came across a situation where the client wants to like and retweet all tweets from a specific user. We needed to make this process automatic so that all tasks should be performed automatically in the background.
But, we wanted to go with the free resources and we chose to incorporate the Like and Retweet APIs of Twitter.
This code will take only original tweets from the user(not tweets they retweeted) and perform the like, retweet operations on your account.
It will run as commands, fetch recent tweets from Google and like, retweet them on your account.