You could be seeing a great picture here
_

Charles on… anything that comes along

Thursday 9 June 2005

Filed under: — Charles @ 9:54 pm

How do I use the Amazon API to get sales rank?

The wife was on BBC TV earlier this week, talking about her new book.Jojo Moyes on BBC Breakfast TV

We then watched the “Amazon effect”, as the book’s sales ranking rose, and kept rising, as the evening went on. (Why the evening, not the day? Do people save their purchases until they get home? Do they tape BBC Breakfast and watch it at the end of the day?)

What’s frustrating, though, is that there’s not an easy way to track the sales ranking over time, at least from the UK site. Over at Kevin Kelly — Cool Tools, he points to a service called Junglescan which will do exactly that, with a graph - but only for things on the .com site.

I did write an Applescript/shell script hack that would find the sales ranking of any given book, but it really needed (grr) broadband to be useful; then you could run it at the same time each day, or every hour. I could revive it, but if anyone could point me to a pre-written bit of PHP or other code that would get the sales ranking of a book from Amazon UK, I’d be grateful.

3 Responses to “How do I use the Amazon API to get sales rank?”

  1. Andrew Brown Says:

    I had something that did this in perl: I’m not sure if I can find it again. It was a very crude scrape. If you want me to host something like this on pair, I can run it as a cron job.

  2. Small Paul Says:

    Why the evening? Maybe people prefer buying stuff at home. Maybe they feel less secure about their transactions at work, or they feel that they shouldn’t be spending time buying stuff at work.

    Bet my bosses wish I felt like that :)

  3. Charles Says:

    Ach - I’ll probably revive my Applescript/curl version, which also screen-scraped in no particularly elegant way. It would just have been nice to have an elegant version that one could put on the server. If I had a few hundred more hours in the day…

Leave a Reply

Powered by WordPress