Closed porames closed 3 years ago
@porames Thanks for this but without a working PR it's really hard to determine if it works. I've now added a test framework that would make it easier to add and test code like this. https://github.com/djay/covidthailand/blob/main/tests/test_scraping.py#L85 The idea is to add json files for just the specific scrapes where something changed. These tests will pickup those files and download just the appropriate file and test if your new code comes up with the same result. It needs to be added to for more parts of the code but I hope it makes it easier to contribute to and also by @pmdscully and anyone else.
Order of columns remains the same. We can just find the row where there is a number and add column names afterward.