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.
Added a warning level log for situations like the one below where the date differential between the latest incident and the current day is below 0.
Checklist before requesting a review
[x] The code runs successfully.
(ucpd-incident-scraper-py3.11) michaelp@MacBook-Air-18 ucpd-incident-scraper % make update
python -m incident_scraper update
[nltk_data] Downloading package wordnet to
[nltk_data] /Users/michaelp/nltk_data...
[nltk_data] Package wordnet is already up-to-date!
Beginning the UCPD Incident scraping process.
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1730234441.781748 990136 check_gcp_environment_no_op.cc:29] ALTS: Platforms other than Linux and Windows are not supported
Finished with the UCPD Incident scraping process.
Waiting up to 5 seconds.
Sent all pending logs.
(ucpd-incident-scraper-py3.11) michaelp@MacBook-Air-18 ucpd-incident-scraper %
Describe your changes
Added a warning level log for situations like the one below where the date differential between the latest incident and the current day is below 0.
Checklist before requesting a review