This script retrieves the ISS data on flu from the Influnet repository.
Then, it extracts relevant information about national incidence, most affected region and age class and draws two plots and a choropleth map using the shapefiles available on ISTAT website.
Finally, it sends a toot using the Toot CLI and the Mastodon profile @[email protected].
If you want to try influbot on your computer, please follow these steps:
-
Install
toot
andpandas
,matplotlib
,seaborn
andgeopandas
Python packages.pip3 install -r requirements.txt
-
Configure
toot
with your own Mastodon account, following these instructions. -
Download from the ISTAT website the zip archive with the shapefiles, and extract it in the script folder.
-
The plotting functions use a custom font, FigTree, which was downloaded from Google Fonts. If you want, you can install a different font or use one of the default
matplotlib
fonts. Edit the script accordingly. -
Create an
archive.txt
file that will keep track of the weeks already processed by the script. -
Run influbot!
python3 influbot.py