We scraped 1,000 books. Here is what the price and rating data shows.
Published 2026-11-25 · source: books.toscrape.com · 1,000 rows
Price is essentially flat across ratings: mean price for a one-star book (£34.56) and a five-star book (£35.37) differ by less than £1. In this catalogue rating does not predict price — which is the kind of thing you only learn by measuring instead of assuming.
Price distribution
| Band | Books | |
|---|---|---|
| £10–20 | 196 | |
| £20–30 | 206 | |
| £30–40 | 195 | |
| £40–50 | 205 | |
| £50+ | 198 |
Min £10 · median £35.98 · mean £35.07 · max £59.99
Rating mix and price by rating
| Rating | Books | Mean price |
|---|---|---|
| One | 226 | £34.56 |
| Two | 196 | £34.81 |
| Three | 203 | £34.69 |
| Four | 179 | £36.09 |
| Five | 196 | £35.37 |
Method
- 50 category pages fetched once each, 2-second delay, single user agent identifying the research.
- Fields captured: title, displayed price string, star-rating class, stock wording.
- Price parsed by stripping non-numeric characters; rating taken from the class name, not the visual.
- Aggregates computed on all 1,000 rows; no sampling, no imputation.
A public sandbox site published for scraping practice; no personal data, no login, no rate limits hit.
Check the numbers yourself
The full 1,000-row file and the aggregate summary are published, with SHA-256 hashes on /open-data.