Cover of Building Bots and Scrapers with Python by Dario Mory

Building Bots and Scrapers with Python

From Beginner to Advanced

by Dario Mory

Archived

The web is full of data. Most of it is not behind an API. Building Bots and Scrapers with Python is a hands-on guide to collecting, parsing, and automating that data — written for developers who want to go from a working script to something they can actually run in production.

The book starts from first principles: how HTTP works, what browsers do that requests does not, and why naively hitting a page in a loop will get you blocked within hours. From there it builds progressively through HTML parsing with BeautifulSoup, JavaScript-rendered pages with Playwright, handling sessions and cookies, rotating proxies, VPNs, and structuring scrapers so they survive site changes without requiring a complete rewrite.

The later chapters cover scheduling, storage, rate limiting, and the ethics and legality of automated data collection — because writing a bot that works is only half the problem. Whether you are building a price monitor, a research crawler, or an internal automation tool, the patterns here are designed to be reused, not thrown away after one project.