A checklist for polite, defensible web scraping
What to check before you collect data from a website, how to behave while you do it, and the signals that mean you should stop. Practical habits, not legal advice.
, 4 min read
How to get data out of web pages correctly and politely. Each guide is written from building the tools on this site, and links to the one that does the job.
What to check before you collect data from a website, how to behave while you do it, and the signals that mean you should stop. Practical habits, not legal advice.
, 4 min read
Both find elements in HTML, but they are good at different things. A side-by-side reference of equivalent queries, the cases where XPath is the only option, and the traps in each.
, 4 min read
Which group applies to your crawler, why the longest rule wins, what a 404 or a 500 on robots.txt means, and what robots.txt does not cover. A practical reading of the standard.
, 4 min read
Copy and paste mangles web tables. Here is what goes wrong (merged cells, two-row headers, numbers, formulas) and how to get a CSV that opens correctly in Excel and Google Sheets.
, 5 min read
Many pages already publish their data in a machine-readable form for search engines. How to find it, read it correctly, and avoid the traps, before you write a single selector.
, 3 min read
Next links, page numbers in the URL, offsets and "load more" buttons each need a different approach. How to pick one, when to stop, and why rows go missing on lists that change while you read them.
, 4 min read
Most scrapers break because of their selectors, not the site. What makes a selector fragile, what to anchor on instead, and how to notice a broken scraper before someone else does.
, 4 min read