g0v / vaccinate

vaxx.tw is a tool to find COVID-19 Vaccine Appointments near you
http://vaxx.tw
MIT License
33 stars 20 forks source link

Re-add scraping functionality with command line flag. #18

Closed kevinjcliao closed 3 years ago

kevinjcliao commented 3 years ago

Currently, the production server reads from a Redis database which is updated by another machine scraping. This proves to be difficult for developers to test with. This pull request:

  1. Adds a flag --scrape to app.py.
  2. Modifies app.py to run local_scraper code instead of reading from the Redis database if this flag is true.
  3. Adds package.json flags to run with the scraper for yarn backend.