~/talk

Scraping Your Way to a Dataset

Talkat PyOhio 2019 · 2019-07-27..07-28· [data-engineering]
slides:none on file

Shows how to turn two messy sources into usable datasets by actually running requests and BeautifulSoup on the PA Lottery pages (iterating roughly 72,000 consecutive IDs to find Powerball draws), reverse‑engineering a university CSRF token + POST endpoint to pull class sections, and saving raw HTML to avoid re‑hits. Code includes simple async ideas (httpx/requests‑futures), CSV export plus tidy data normalization into courses and sections tables, and a basic randomness test that meets the expected threshold.

AI-written summary · about

  1. 0:00Start
  2. 1:07Organizing data into a dataset
  3. 2:06What data is needed?
  4. 3:00Consider the following problems...
  5. 5:18The dataset doesn't exist
  6. 6:28Scraping is a last resort
  7. 6:39Potential Issues with Web Scraping
  8. 9:06Back to the program
  9. 12:13The Developer Console
  10. 13:52Probably calling a Web API
  11. 16:53Web API can be fun!
  12. 17:49Data scraping exploration phase
  13. 19:30Into the world of BeautifulSoup
  14. 30:00Stop spamming web servers
  15. 30:21Limit your scraper
  16. 31:12Preventing future requests
  17. 32:20Try scraping publicly available information
  18. 32:58These datasets are bad for analysis
  19. 35:17Closely related to Database Normalization
  20. 35:30Data Integrity
  21. 36:39Let's Apply These Principles
  22. 40:50We reached the end of journey
  23. 41:29Need something a little more powerful?
~/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.