Python Twitter bot part 4

Python Twitter bot part 4

                                             Python Twitter Bot Part 4 

Hey guys, Welcome to the part 4 of twitter bot. I assume you have created your twitter account and twitter developer account and also learnt some basics on how to use twitter API from my previous articles. Now, let us move on to the interesting part i.e. how to print tweets from our twitter home timeline.

Code of Tweet printing twitter bot:

import tweepy
#enter your keys here
#enter your keys here
#to establish connection
#assigned our twitter home timeline information to the variable public_tweets
for tweet in public_tweets:#iterating through every tweet in our home timeline
#prints all the text in our twitter account home timeline


In the above output we can see, tweets about the movie RRR and also tweets from the google and so on.

We will learn about Follow back followers twitter bot in the next article.

For Twitter bot part-3:

For Twitter bot part-5: