Created
July 22, 2010 08:30
-
-
Save lopnor/485729 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!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