-
-
07 Nov 2004 09:32:48 UTC
- Distribution: WWW-Amazon-Wishlist
- Module version: 1.4
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (4 / 23 / 0)
- Kwalitee
Bus factor: 1- License: unknown
- Activity
24 month- Tools
- Download (7.87KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- SYNOPSIS
- DESCRIPTION
- GETTING YOUR AMAZON ID
- SHOWING YOUR APPRECIATION
- BUGS
- COPYING
- AUTHOR
- SEE ALSO
NAME
WWW::Amazon::Wishlist - grab all the details from your Amazon wishlist
SYNOPSIS
use WWW::Amazon::Wishlist qw(get_list COM UK); my @wishlist; @wishlist = get_list ($my_amazon_com_id); # gets it from amazon.com @wishlist = get_list ($my_amazon_com_id, COM); # same, explicitly @wishlist = get_list ($my_amazon_couk_id, UK); # gets it from amazon.co.uk # or if you didn't import the COM and UK constants @wishlist = get_list ($my_amazon_couk_id, WWW::Amazon::Wishlist::UK); # the elements of @wishlist are hashrefs that contain ... foreach my $book (@wishlist) { print $book->{title}, # the, err, title $book->{author}, # and the author(s) $book->{asin}, # the asin number, its unique id on Amazon $book->{price}, # how much it will set you back $book->{quantity}, # how many you said you want $book->{priority}, # how urgently you said you want it (1-5) $book->{type}; # Hardcover/Paperback/CD/DVD etc (not available in the US) }
DESCRIPTION
Goes to Amazon.(com|co.uk) and scrapes away your wishlist and returns it in a array of hashrefs so that you can fiddle with it until your hearts content.
GETTING YOUR AMAZON ID
The best way to do this is to search for your own wishlist in the search tools.
Searching for mine (simon@twoshortplanks.com) on amazon.com takes me to the URL
http://www.amazon.com/exec/obidos/wishlist/2EAJG83WS7YZM/
there's some more cruft after that last string of numbers and letters but it's the
2EAJG83WS7YZM
bit that's important.
Doing the same for amazon.co.uk is just as easy.
Apparently some people have had problems getting to their wishlist just after it gets set up. You may have to wait a while for it to become browseable.
SHOWING YOUR APPRECIATION
There was a thread on london.pm mailing list about working in a vacumn - that it was a bit depressing to keep writing modules but never get any feedback. So, if you use and like this module then please send me an email and make my day.
All it takes is a few little bytes.
BUGS
B<IMPORTANT> C<WWW::Amazon::Wishlist> is a screen scarper and is there for is vulnerable to any changes that Amazon make to their HTML. If it starts returning no items then this is very likely the reason and I will get roudn to fixing it as soon as possible. You might want to look at the C<Net::Amazon> module instead.
It doesn't cope with anything apart from .co.uk and .com yet. Probably.
I don't think it likes unavailable items - trying to work round this breaks UK compatability.
The code has accumulated lots of cruft.
Lack of testing. It works for the pages I've tried it for but that's no guarantee.
COPYING
Copyright (c) 2003 Simon Wistow
Distributed under the same terms as Perl itself.
This software is under no warranty and will probably destroy your wish list, kill your friends, burn your house and bring about the apocalypse
AUTHOR
Simon Wistow <simon@thegestalt.org>
SEE ALSO
Module Install Instructions
To install WWW::Amazon::Wishlist, copy and paste the appropriate command in to your terminal.
cpanm WWW::Amazon::Wishlist
perl -MCPAN -e shell install WWW::Amazon::Wishlist
For more information on module installation, please visit the detailed CPAN module installation guide.