Import data from e.g Amazon like ISBN etc (A extended onebox solution for Amazon)

Quick thought but it strikes me it could be okay as long as this works in most cases, and also okay for any given book if the data is incomplete as long as it captures the most important stuff.

It seems like it’s not always the same data included, but (almost always?) in the same order / same text in the <b> tag in the <li>, so w/ perhaps string search + a few judicious if statements could get it to good enough.

So for example could look at #productDetailsTable and get whichever of these are present, and ignore if not found:

  • if (paperback || hardcover) then show page length, else [digital edition]
  • publisher
  • pub date
  • language
  • if (paperback || hardcover) then ISBN #s else ASIN
  • avg. customer review

Not sure how much trickier differences w/ international versions of Amazon make this, but even if it worked just for USA/UK for example and got data for 95% of books it could be useful.