~/talk

Automate Your City Data With Python

Talkat PyBay 2024 · on Saturday, 2024-09-21· [python, data-engineering]
slides:none on file

Shows a concrete pipeline that turns municipal PDFs into a searchable DB using Python, PyMuPDF (fits) to rasterize pages, Tesseract OCR to extract text, sqlite-utils/Datasette to load and serve, and GitHub Actions to schedule builds. Demonstrates scraping Legistar-style sites (Pittsburgh example), handles recoverable folder-of-folders ETL, indexes full‑text search, and has run up to 57,000 pages for Berkeley and 1.3 million pages across civic.band. Runs on one Mac Mini and costs about $45/month.

AI-written summary · about

  1. 0:00The importance of civic data
  2. 2:48Data origins and legality
  3. 6:03ETL process overview
  4. 7:27Extraction and API usage
  5. 14:37Transforming documents
  6. 17:39Loading data with Datasette
  7. 20:28Practical data analysis
  8. 22:29Deployment and maintenance
  9. 24:43Q&A and future outlook
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.