Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
How to Create An Twitterbot with simpletwitter

Github Repository: [https://github.com/pravee42/simpletwitter](https://github.com/pravee42/simpletwitter)

```
from simpletwitter import SimpleTwitter

email = "Twitter_User_Email_Address"
password = "Twitter_Password"
user_name = "Abipravi1"
#here i have entered my twitter username but you need to enter your's in this case

no_of_tweets = 10 #this value is necessary how many no of tweets you want to perform operation

bot = SimpleTwitter(email, password, no_of_tweets, user_name)
#Creating Instance

hashtags = ['#abipravi', #pythonmodule', '#twitter_bot']
tweetmessage = "My first tweet by simple twitter"
bot.login() # to login into the account

bot.like_tweet(hashtags) # like the tweet

bot.unlike_liked_tweets(5) # unlike the liked tweet

bot.tweet(tweetmessage) # put some tweet



/r/Python
https://redd.it/r7mtzy