michplunkett / ucpd-incident-scraper

This code is going to be used to scrape the UCPD Daily Incident page at a pre-determined frequency and store the incidents on a generic JSON data-store.
MIT License
3 stars 2 forks source link

Add `download` command #24

Closed michplunkett closed 1 year ago

michplunkett commented 1 year ago

Describe your changes

Added a command that downloads all Incident records to a local CSV.

Checklist before requesting a review

(ucpd-incident-scraper-py3.11) michaelp@MacBook-Air-5 ucpd-incident-scraper % make download
python -m incident_scraper download
Downloaded 1260 incident records.
Saved 1260 incident records to a CSV.
Program shutting down, attempting to send 1 queued log entries to Cloud Logging...
Waiting up to 5 seconds.
Sent all pending logs.
(ucpd-incident-scraper-py3.11) michaelp@MacBook-Air-5 ucpd-incident-scraper %