MetaChat REGISTER   ||   LOGIN   ||   IMAGES ARE OFF   ||   RECENT COMMENTS




artphoto by splunge
artphoto by TheophileEscargot
artphoto by Kronos_to_Earth
artphoto by ethylene

Home

About

Search

Archives

Mecha Wiki

Metachat Eye

Emcee

IRC Channels

IRC FAQ


 RSS


Comment Feed:

RSS

05 April 2006

Ask Mecha: I want to watch the Amazon Sales Rank on a particular book over the next few months. Anyone know if there is any way to do this automatically. I'd love to be able to set up a web page with a rolling Sales Rank Chart.
seanyboy
There are a couple commercial products available, which I can't speak to, but you can google them. Dude from fuckedcompany had one called junglescan or amazonscan, which was free and did a little graph for you. It's showing as down for a server upgrade, but it was supposed to be done in february, so it might be gone. You can capture the data yourself and do it up in excel. Amazon has a lot of funny business with the sales rank, it's not really science and the numbers come in sorta arbitrarily, but I usually find that the numbers at close of business on the US west coast are pretty realistic over the course of the day.

I'll ask around if there is another free one anywhere.

Authors depend on the sales rank alot to try to understand how their books are doing, BUT it is not the best metric and doesn't always represent what is going on in the flesh based world. Publishers pay for bookscan, which is run by Nielsen, that is a much better representation of sales life, but it costs big, the sample and extrapolate from sales in brick and mortar stores and amazon. I can run a bookscan for you if you like, send me the isbn and I'll see what I can pull.
posted by Divine_Wino 05 April | 08:58
Thanks Divine_Wino. I looked at a couple of these, but they didn't allow me to search the UK.
Thanks to Ruby and Google, I think I've got it cracked.
#!/usr/local/bin/ruby -w
require 'amazon/search'
include Amazon::Search
DEV_TOKEN = "Yeah - right" # your development token
req = Request.new(DEV_TOKEN)
search = ['asin_search', '0954828089', HEAVY, 'ASIN']
#search = ['asin_search', '0297851144', HEAVY, 'ASIN']

# parse the results of the search
response = req.send(*search)
# Print current sales rank

file = File.open("c:\\gaia.txt", File::WRONLY|File::APPEND|File::CREAT)
file.print(Time.now.localtime.strftime("%Y-%m-%d,%H:%M"))
file.print(",0954828089,")
file.print( response.products.first.instance_variable_get("@sales_rank"))
file.print("\n")
file.close


Boy - it's hard to put preformatted text into metachat.

posted by seanyboy 05 April | 10:06
Well that looks like total gibberish to me, so it must work perfectly.
posted by Divine_Wino 05 April | 10:48
I'm working from home today || Puff Piece

HOME  ||   REGISTER  ||   LOGIN