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 warning for bad date differentials #67

Closed michplunkett closed 1 week ago

michplunkett commented 1 week ago

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.

image

Checklist before requesting a review

(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 %
michplunkett commented 1 week ago

Related to this issue: https://github.com/michplunkett/ucpd-incident-scraper/issues/66