Downloading and archiving raw data on fire and police calls in Columbia, MO.
- Launches a Playwright browser that navigates to police and fire call dispatch pages
- For each page, loads into a dataframe the data from an exported CSV containing the previous day's worth of calls
- Sends a Slack alert with details for any new incidents, then adds these records to the data in the local files (
columbia-fire-calls.csvandcolumbia-police-calls.csv)
A GitHub action runs this script every 30 minutes.
I'm using uv to manage Python dependencies.
- Clone or download this repo and
cdinto the directory uv syncuv run main.py
Launch the notebook server: uv run jupyter lab. See Analysis.ipynb for a start.