| WWW-Search-Ebay documentation | Contained in the WWW-Search-Ebay distribution. |
WWW::Search::Ebay::Motors - backend for searching eBay Motors
use WWW::Search;
my $oSearch = new WWW::Search('Ebay::Motors');
my $sQuery = WWW::Search::escape_query("Buick Star Wars");
$oSearch->native_query($sQuery);
while (my $oResult = $oSearch->next_result())
{ print $oResult->url, "\n"; }
This class is a Ebay Motors specialization of WWW::Search. It handles making and interpreting Ebay searches http://www.ebay.com.
This class exports no public interface; all interaction should be done through WWW::Search objects.
Same as WWW::Search::Ebay.
Same as WWW::Search::Ebay.
To make new back-ends, see WWW::Search.
Please tell the author if you find any!
Martin 'Kingpin' Thurn, mthurn at cpan.org, http://tinyurl.com/nn67z.
Copyright (C) 1998-2009 Martin 'Kingpin' Thurn
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
| WWW-Search-Ebay documentation | Contained in the WWW-Search-Ebay distribution. |
# $Id: Motors.pm,v 1.16 2010-04-25 00:00:47 Martin Exp $
##################################################################### package WWW::Search::Ebay::Motors; use strict; use warnings; use Carp; use Data::Dumper; use base 'WWW::Search::Ebay'; our $VERSION = do { my @r = (q$Revision: 1.16 $ =~ /\d+/g); sprintf "%d."."%03d" x $#r, @r }; our $MAINTAINER = 'Martin Thurn <mthurn@cpan.org>'; sub _native_setup_search { my ($self, $native_query, $rhOptsArg) = @_; $rhOptsArg ||= {}; unless (ref($rhOptsArg) eq 'HASH') { carp " --- second argument to _native_setup_search should be hashref, not arrayref"; return undef; } # unless $rhOptsArg->{search_host} = 'http://motors.search.ebay.com'; return $self->SUPER::_native_setup_search($native_query, $rhOptsArg); } # _native_setup_search sub _columns { my $self = shift; return qw( paypal bids price enddate ); } # _columns 1; __END__