~/talk

Gathering data from the web using Python

Talkat PyCon US 2024 · 2024-05-15..05-23· [python]
slides:none on file

Covers a hands‑on Scrapy tutorial: building spiders, pagination and exporting with the JSONL vs JSON memory tradeoff, handling AJAX by calling the site’s underlying API, extracting data embedded in script tags with regex + json loads, and optionally using headless browsers (Playwright/Selenium) via scrapy-playwright; exercises scrape a quotes sandbox, produce 100 items, demonstrate caching, rate control, proxies and Spidermon monitoring, and show when a browser is necessary versus parsing API responses.

AI-written summary · about

  1. 0:00Web scraping intro
  2. 23:47Python setup for Scrapy
  3. 56:15Why Scrapy is best
  4. 1:02:36Exercise 1: static pages
  5. 1:30:01Break & Q&A
  6. 1:31:04Logging into sites
  7. 1:32:10Exercise 2: infinite scroll
  8. 1:59:51JS variable scraping
  9. 2:11:08Exercise 4: multiple requests
  10. 2:25:33Solution review 4
  11. 2:31:44Headless browsers intro
  12. 2:41:56Long-term scraper maintenance
  13. 2:47:01Legal & ethical scraping
  14. 2:50:15Closing & Q&A
~/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.