A twitter bot which likes and retweets any tweet containing #100DaysOfDoingSomething
This is a twitter bot which is made for motivating people to learn and do development. By tweeting their daily progress, they can let the world know about their efforts. This bot will also provide motivational replies to the users. This will not be just plain reply but dynamically selected from a pool of replies.
For this project we need the tweepy library. The version to be installed depends on the version of python.
- Check version
python --version
- If you have Python 3.6
pip install tweepy
- If you have Python 3.7
pip3 install -U git+https://github.com/tweepy/tweepy.git@2efe385fc69385b57733f747ee62e6be12a1338b
- Finding tweets with #100DaysOfDoingSomething
- Liking tweets
- Retweeting those tweets
- Replying a constant message
- Replying randomly from a pool of messages
The usage of the app needs a developer account for twitter. After signing up for that, follow these steps.
- Fork and Clone the repo.
- Make a file credentials.py
consumer_key = '<your_consumer_key>' consumer_secret = '<your_consumer_secret>' access_token = '<your_access_token>' access_token_secret = '<your_access_token_secret>'
- Run tweetbot.py
python tweetbot.py
- This video by @ykdojo
- This guide by DigitalOcean