Closed desholmes closed 4 years ago
@tomwhite Added a Makefile to semi-automate the England tasks.
@desholmes this is amazing! I will give it a run through tomorrow. Many thanks.
+1. I've run some light testing on this and it looks great. Especially glad you found a stable URL for the CSV on ArcGIS.
It would be nice if we could use Make in such a way that it doesn't repeatedly download a file (e.g. make england-totals-download
will always re-download even if the file is there locally), but that can be improved later.
Overview
Introduce make commands to automate the process of gathering the daily UK data. Updated
README.md
.Changes
Makefile
to automate the England daily taskstools/extract_totals.py
to append data to./data/covid-19-totals-uk.csv
if the downloaded temp HTML file contains today's date.gitignore
to exclude vscode and temp HTML filesREADME.md
with usage instructions for the make commandsSteps to test
Make commands
section ofREADME.md
extract_totals.py
: Updated usage instructions inManually running scripts
to include a second arg for./data/covid-19-totals-uk.csv