|
From: John L. <gal...@ho...> - 2009-09-25 02:35:27
|
It's working great. Thank you.
Do you know where I can find a comprehensive list of every browsernodes/id?
I suppose I could just look on the Amazon site and look at the url's but I remember reading somewhere that the browsenode ids change very frequently. This is a little bit of a concern for me.
John
> From: bou...@gm...
> Date: Thu, 24 Sep 2009 22:11:09 -0400
> Subject: Re: [Net-amazon-devel] searching by browsenode
> To: gal...@ho...
> CC: >
> I don't think there is anything wrong with your code, as much as there
> is something wrong with the browse node. The node number you used is
> the one listed in the API documentation, but I think you need to pick
> a more specific one.
>
> I ran the browse script from the eg/ directory in the distribution,
> and got many results for Zelda.
>
> ./browse 11846801 videogames zelda
>
> B0009VXBAQ Wii $249.99
> B001TOQ8WU Mario & Luigi Bowser's Inside Story $33.99
> B002BRZ9G0 New Super Mario Bros. $46.99
> B000FQ9QVI Super Mario Galaxy $46.49
> B000FQ9R4E Super Smash Bros. Brawl $43.99
> B000LFJNF2 Wii Charge Station $24.49
> B000FQBPCQ The Legend of Zelda: Twilight Princess $43.99
> B000FRV2UK The Legend of Zelda: Phantom Hourglass $28.49
> B000W5Y49G Official Wii Zapper with Link's Crossbow Training $19.49
> B00000DMB3 The Legend of Zelda: Ocarina of Time
> B000084318 Legend of Zelda The Wind Waker
> B000FQBPDU Metroid Prime 3: Corruption
> B0009UBR3A The Legend of Zelda: Twilight Princess
> B00002STXN The Legend of Zelda: A Link to the Past
> B00004SVXW Legend of Zelda
> B00006LELB The Legend of Zelda: A Link to the Past (Includes Four Swords) $19.99
> B000BRULV0 The Legend of Zelda: Collector's Edition
> B000JVM256 The Legend of Zelda: Majora's Mask - Collector's Edition
> B00005ATSN The Legend of Zelda: Oracle of Ages
> B0009Y808Q Legend of Zelda - Ocarina of Time (Collector's Edition) - Nintendo 64
> B00030GS80 The Legend of Zelda - The Minish Cap
>
>
> Hope this helps.
>
> Christopher
>
>
>
> On Thu, Sep 24, 2009 at 4:30 PM, John Lee <gal...@ho...> wrote:
> >
> > Hi,
> >
> > I attempted to make a basic search functionality and using Net::Amazon. I am searching by browsenode.
> >
> > I am having some issues with the search results being very inaccurate. Could you help me?
> >
> > This is my code snippet:
> >
> > my $search = param('search');
> > my $department = param('department');
> > my $response;
> > my %browsernodeids = (
> > books => 1000,
> > clothing => 1036682,
> > electronics => 493964,
> > dvd => 130,
> > videogames => 493964
> > );
> >
> > if ($search)
> > {
> > if ($department eq "all")
> > {
> > $response = $ua->search(blended => $search);
> > }
> > else
> > {
> > if (exists $browsernodeids{$department})
> > {
> > $response = $ua->search(browsenode => $browsernodeids{$department},
> > mode => $department,
> > keywords => $search);
> > }
> > }
> > }
> >
> > My first case for Books is working pretty well. I tested this with 'Harry potter'. No big issues.
> >
> > My second case for Video Games, however, is not looking good. I searched for "mario" and got very few results, all which are accessories without any "mario" word in it. I also searched for "zelda" and no results found.
> >
> > Is there something wrong with my code? Why isn't it working?
> >
> >
> > John
> >
> >
> > ________________________________
> > Lauren found her dream laptop. Find the PC that’s right for you.
> > ------------------------------------------------------------------------------
> > Come build with us! The BlackBerry® Developer Conference in SF, CA
> > is the only developer event you need to attend this year. Jumpstart your
> > developing skills, take BlackBerry mobile applications to market and stay
> > ahead of the curve. Join us from November 9-12, 2009. Register now!
> > http://p.sf.net/sfu/devconf
> > _______________________________________________
> > Net-amazon-devel mailing list
> > Net...@li...
> > https://lists.sourceforge.net/lists/listinfo/net-amazon-devel
> >
_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290 |