Kindle edition · Supplementary material

Web Scraping with AI Without Getting in Trouble

Let ChatGPT Write Your Python Scraper with Requests, BeautifulSoup and Playwright, Check the Data, and Respect robots.txt, Terms of Use and the Law

Here are the files that go with the book: scripts, configuration files and test material, as the chapters cite them. The download is free and asks for no personal information.

Download the material (ZIP)

What is inside the ZIP

  • scripts/: books_toscrape.py, which reads robots.txt, keeps a pause of at least one second and stops on 429, and quotes_toscrape.py, which extracts the same quotes from plain HTML, from the JSON embedded in the JavaScript page and with Playwright. Plus requirements.txt.
  • templates/: The legal checklist with yes-or-no questions before every project, and prompts.md with the prompts to look for official routes, review terms, write the extractor, extract from text, debug and validate.

The ZIP also includes a README.md with the requirements and the order of use. Unzip it into a folder of your choice; the book says which folder it expects.

Readers of this book also use

For personal use, under the same license as the book. © 2026 Parra Capital LLC. BeautyThings is a trademark of Parra Capital LLC. Problems with a file? Write to soporte@beautythings.net.