Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Checking links with LWP::UserAgent

by wilstephens (Acolyte)
on Mar 08, 2002 at 10:37 UTC ( #150273=note: print w/replies, xml ) Need Help??


in reply to Re: Checking links with LWP::UserAgent
in thread Checking links with LWP::UserAgent

OK. Does anyone know how I could go about converting the above code to use LWP::Parallel then? I'm afraid that I will run it and it will fire off and look through the 300+ sites all in parallel at the same time? Is there a way to limit it? -- Wiliam Stephens <wil@stephens.org>
  • Comment on Re: Re: Checking links with LWP::UserAgent

Replies are listed 'Best First'.
Re: Re: Re: Checking links with LWP::UserAgent
by lhoward (Vicar) on Mar 08, 2002 at 17:27 UTC
    The docs have some good examples. You set the option:
    $ua->max_req(5);
    to set how many requests it will handle in parallel.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://150273]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2021-11-27 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?