Peter Karman

NAME

SWISH::Prog::Aggregator::Spider::UA - spider user agent

SYNOPSIS

 use SWISH::Prog::Aggregator::Spider::UA;
 my $ua = SWISH::Prog::Aggregator::Spider::UA->new;
 
 # $ua is a LWP::RobotUA object

DESCRIPTION

SWISH::Prog::Aggregator::Spider::UA is a subclass of LWP::RobotUA.

METHODS

get( args )

args is an array of key/value pairs. uri is required.

delay will sleep() delay seconds before fetching uri.

Also supported: user and pass for authorization.

head( args )

Like get(), args is an array of key/value pairs. uri is required.

delay will sleep() delay seconds before fetching uri.

Also supported: user and pass for authorization.

redirect_ok

Returns 0 (false) to override parent class behavior.

response

Returns most recent Response object.

uri

Returns most recently requested URI object.

Set hashref of tags considered valid "links". Passed into every Response object in the link_tags() accessor.

set_response_class( class )

Set the Response class. Default is SWISH::Prog::Aggregator::Spider::Response.

get_response_class

Returns the class name of objects returned from get() and head().

AUTHOR

Peter Karman, <perl@peknet.com>

BUGS

Please report any bugs or feature requests to bug-swish-prog at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SWISH-Prog. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc SWISH::Prog

You can also look for information at:

COPYRIGHT AND LICENSE

Copyright 2008-2009 by Peter Karman

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

http://swish-e.org/