I Built an O’Reilly Rating Lens — Every Wall I Hit

A small tool, built in an afternoon

I Built an O’Reilly Rating Lens — Every Wall I Hit

O’Reilly tells you what a book costs. It doesn’t tell you whether anyone thinks it’s good. So I made a browser extension that puts external reader ratings right where you’re already reading — and spent most of the afternoon discovering why nobody had made it properly before.

Two honest caveats before you read on.

It’s a signal, not a verdict. These ratings come from Google Books, Open Library and Amazon. Coverage is uneven — some newer books have no external rating at all. The extension says so instead of inventing a number.

Amazon is best-effort. Amazon has no public rating API and actively blocks automated requests. When it works, you see the rating. When it doesn’t, you get a direct search link. I didn’t try to defeat the bot wall.

Why this exists

I read a lot of technical books on O’Reilly. The platform gives you a summary, a table of contents, and a preview. What it doesn’t give you is a second opinion — the kind of quick sanity check you get from a star rating with a few thousand votes behind it.

Sure, you can open a new tab, search the ISBN, squint at three different sites, and come back. But that’s exactly the kind of small friction that never gets done. The useful version of this tool is one where the rating is just there, under the title, before you decide whether to open the book.

So the goal was narrow: on a book page, show a compact card; on a search results page, show one small line per book. Nothing else.

Where the ratings come from

Three sources, in order of how much I trust them:

  • Google Books — a clean public API. Look up by ISBN first, then fall back to intitle:… inauthor:… when the ISBN isn’t indexed. If several volumes come back, take the one with the most ratings.
  • Open Library — also public. ISBN → work → ratings.json, with a title search as backup.
  • Amazon — no API, so this is a scraper. Convert ISBN-13 to ISBN-10, fetch /dp/<asin>, and regex the rating out of the page. It’s the fragile one, and it’s treated as such.

Amazon is fetched only when the first two sources come up empty. There’s a checkbox to fetch it for every book if you want, and another to turn it off completely. Default is on-demand — a compromise between coverage and getting blocked.

How to install it

  1. Download and unzip the folder below.
  2. Open chrome://extensions or edge://extensions.
  3. Turn on Developer mode (top-right).
  4. Click Load unpacked and pick the folder containing manifest.json.
  5. Open an O’Reilly book page or a search results page. Ratings appear automatically.

After any update, reload the extension and hard-refresh the page.

Download

O’Reilly Rating Lens · v1.0.0

Unpacked extension folder + README. Manifest V3, Chrome / Edge, no build step.

Download the .zip ↗

About 25 KB · English UI · MIT-style: use it, modify it, no warranty.

Built with an AI assistant, one browser tab and a lot of hard refreshes. Not affiliated with, endorsed by, or connected to O’Reilly Media. Ratings belong to their respective sources. Respect their Terms of Service.

AgentPeng

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部