Skip to content

Instantly share code, notes, and snippets.

@lopnor
Created July 22, 2010 08:30
Show Gist options
  • Select an option

  • Save lopnor/485729 to your computer and use it in GitHub Desktop.

Select an option

Save lopnor/485729 to your computer and use it in GitHub Desktop.
#!perl
use strict;
use warnings;
use lib 'lib';
use Config::Pit;
use BrowseNodeLookup;
binmode(STDOUT, ':utf8');
my $nodeid = shift;
my $conf = pit_get('amazon.co.jp');
my $lookup = BrowseNodeLookup->new($conf);
my $res = $lookup->lookup($nodeid, 'TopSellers');
for (@$res) {
my $info = $_->{detail};
# customize for yourself!
print join("\t",
$info->asin,
$info->title,
join(', ', $info->authors),
$info->publisher,
$info->ReleaseDate,
$info->isbn,
$info->ImageUrlLarge,
$info->SalesRank,
), "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment