"# twitter-coronavirus-bot"
This project creates a Twitter bot that replies to users' tweets with latest Coronavirus statistics. To try the bot that I developed, please follow @YourCoronaBot on Twitter!
*Language: Python *Packages: TweepyAPI *External APIs: Coronavirus monitor from RapidAPI
- Clone this repository to your local device.
- Install Python3 and pip.
- Install packages
pip install requests
- Register and get approved for a Twitter Developer Account at www.developer.twitter.com. *Decide whether to use a personal account or create a separate Twitter account.
- Create an App on your Twitter Dev Acc.
- Get the app's Consumer key and Security key. Then, update the variables to the right keys. *Variables are defined in the project
- Run the project :
E.g.
python3 reply.py
OPTIONAL
- Use Amazon EC2/Heroku to deploy the project in the background.
- posting.py : Post a standard tweet.
- reply.py : Reply user's tweet with latest coronavirus stats of certain country when mentioned certain keywords such as "coronavirus usa".
- progress.py : Reply user's tweet with a country's Coronavirus progress. (Percentage between yesterday and today's active cases.)
© Riza Hassan *This is a personal Open Source project. Feel free to clone and use the project. Contact Riza Hassan at ruhulruzbihan@gmail.com for more information.