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.
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
- Ollama on Windows When It Breaks: GPU Not Used, 500 Errors, Cut-Off Context and Empty Replies: Measured Causes, Tested Fixes See it on Amazon: Ollama on Windows When It Breaks (opens Amazon.com in a new tab)
- OpenCode with Local Models: Why Ollama Fails, How Much Context It Really Needs, and How to Keep Everything Off the Cloud See it on Amazon: OpenCode with Local Models (opens Amazon.com in a new tab)
- Which Local AI Model Fits Your GPU: How Much VRAM You Really Have, Which Models and Quantizations Fit, and What Speed to Expect with Ollama and LM Studio on Windows See it on Amazon: Which Local AI Model Fits Your GPU (opens Amazon.com in a new tab)
- Chat With Your PDFs Locally: Private AI with Ollama That Answers With File and Page Citations, Checks Its Own Quotes, and Keeps Your Documents Off the Cloud See it on Amazon: Chat With Your PDFs Locally (opens Amazon.com in a new tab)
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.