~/talk

Distributed Web Scraping in Python

Talkat PyCon US 2022 · 2022-04-27..05-03· [web-platform, python]
links:none on file
slides:none on file

Builds a controller + work and result queues feeding many scraper nodes that use requests + BeautifulSoup + Selenium, proxy rotation, random headers and retries to process 25,000 pages workloads. Uses message brokers like RabbitMQ/Redis/Kafka with pika/puka for dispatch, plus tooling like click retry backoff requests-cache and fake-user-agent. Empirical result: a 15k–25k job goes from about 26 hours reduced to 4–5 hours on 8–10 nodes, at the cost of higher resource and deployment complexity.

AI-written summary · about

  1. 0:00Intro
  2. 0:39Outline
  3. 1:03Introduction
  4. 2:15Data Science Project Stages
  5. 3:04What is Distributed Web Scraping
  6. 4:13Setting the Stage
  7. 5:26Iteration - A Single Request
  8. 6:07Looping Requests
  9. 6:46Iteration 1 - Issues
  10. 8:08Intermediate improvements
  11. 10:39Iteration 2 - Issues
  12. 11:42Distributed - Mental Model
  13. 12:15Distributed - Controller
  14. 12:47Distributed - Scraping Node
  15. 14:05Distributed - Advantages
  16. 15:19Distributed - Disadvantages
  17. 16:07Distributed - Queues
  18. 17:04Distributed - Message Brokers
  19. 17:54Code Management
  20. 19:54Useful Python Packages
  21. 21:52Considerations
  22. 22:49Conclusion
~/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.