LWP::Throttle

Throttle requests to a site

VERSION

Version 0.01

SYNOPSIS

Some sites with REST APIs, such as openstreetmap.org, will blacklist you if you do too many requests.

use LWP::Throttle;
my $ua = LWP::Throttle->new();
$ua->load(1);
print $ua->get('http://www.example.com');

SUBROUTINES/METHODS

new

Creates a LWP::Throttle object.

send_request

See LWP::UserAgent.

load

Get/set the number of seconds between each request. The default is one second.

AUTHOR

Nigel Horne, <njh at bandsman.co.uk>

BUGS

SEE ALSO

LWP::UserAgent, Sub::Throttle

SUPPORT

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

perldoc LWP::Throttle

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2017 Nigel Horne.

This program is released under the following licence: GPL2