Three Python tools, three different jobs. What requests, Scrapy and Playwright actually do on the wire, the defaults that surprise people, and a simple rule for choosing between them.
Tag Archives: Python
Sometimes there is no feed, no API and no JSON in the page, only markup. How to extract from it so that when the page changes you get an error rather than a plausible wrong price, with a small test you can rerun yourself.
A price without a reliable time is an anecdote. The timestamps a scraped record needs, the daylight-saving trap that duplicates an hour every November, and why a change you observed is not a change you can date exactly.
schema.org Product markup is on more than ten million domains, and it is the cleanest product data a page can carry when it is right. The properties that matter, how offers and variants fit together, and the errors to validate against.
Product identifiers are the shortest path to matching the same item across stores, if you know which ones are global, which are local, and how to tell a valid GTIN from a typo.
Sitemaps are the cheapest way to discover a catalog’s URLs. How to find them, separate product URLs from the rest, detect new and removed products between runs, and check what the sitemap leaves out.
robots.txt became a standard in September 2022. What RFC 9309 actually specifies about groups, matching, limits, caching and errors, where Google’s behavior differs, and a matcher you can test against.
Retries feel free from the client side. On the server they multiply load. Which failures deserve a retry, how backoff and jitter work, and when a collector should stop and ask.
Comparing prices is easy once you know two listings are the same product. A five-stage matching cascade, GTIN validation code, and what academic benchmarks say about accuracy.
Before you write a single CSS selector, search the page source for the price. We checked where five big US retailers keep it, and why the first price you find is often the wrong one.
- 1
- 2









