cosmicperl has asked for the wisdom of the Perl Monks concerning the following question:
require PageRank; my $PR = WWW::Google::PageRank->new; use LWP::Simple qw($ua get); foreach $siteurl (@websites) { ## Start main loop my $pagerank = $PR->get($siteurl); unless ($pagerank) { $pagerank = 0; } ## End unless $ua->timeout(30); $ua->agent('Blah'); my $html = get($website); } ## End loop
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP simple, setting timeout
by Gangabass (Vicar) on Aug 24, 2007 at 00:56 UTC |