Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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
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 having an uproarious good time at the Monastery: (5)
As of 2020-12-02 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (35 votes). Check out past polls.

    Notices?