-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Thomas Manalil edited this page Jun 7, 2020
·
9 revisions
Welcome to the TwitterBot wiki!
This bot generate a covid-19 death trend graph for a country.
reply.py - start here.
covid_trend.api - generates reply to the tweet (calls other libraries listed below)
covid_api.py- api call to generate death trend data for country
chart_api.py - api call to Quick Chart to generate chart
twitter.py - twitter api call wrapper (uses tweepy)
Run pip install requirements.txt to install all required libraries.
- Run
python -m pytest -vto run all tests - Run
coverage run --source=Bot -m pytestand then runcoverage reportto generate unit test code coverage report
- Add twitter access tokens to
Config\config.json - Run
python -m Bot.reply - Verify log entries in
Logsfolder