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.
Improve address parsing functionality to more easily navigate between cross streets and fix string imperfections.
Checklist before requesting a review
[x] The code runs successfully.
(ucpd-incident-scraper-py3.11) michaelp@MacBook-Air-18 ucpd-incident-scraper % make correct_location
python -m incident_scraper correct-location
[nltk_data] Downloading package wordnet to
[nltk_data] /Users/michaelp/nltk_data...
[nltk_data] Package wordnet is already up-to-date!
API queries_quota: 60
0 of 16858 had their address updated.
0 addresses were updated.
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-18 ucpd-incident-scraper %
Describe your changes
Improve address parsing functionality to more easily navigate between cross streets and fix string imperfections.
Checklist before requesting a review