http://www.perlmonks.org?node_id=10006

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

How can I send one query to many sites on the web, and read back their replies.

I would rather not uses LWP as it is very slow, because it handles one agent at a time.

I need to parse the incoming replies as fast as they arrive.

Originally posted as a Categorized Question.

  • Comment on How do I send one query to many sites & read back their replies?

Replies are listed 'Best First'.
Re: How do I send one query to many sites & read back their replies?
by btrott (Parson) on May 03, 2000 at 04:07 UTC
    Yes, I know you say you don't want to use LWP, but:

    Have you checked out LWP::Parallel? It sounds like it does what you want.

Re: How do I send one query to many sites & read back their replies?
by Anonymous Monk on May 08, 2000 at 07:17 UTC
    The LWP::Parallel is a very good solution,but it is not available on my server? DO YOU HAVE ANOTHER SOLUTION ?
      Maybe it's time to look in the LWP::Parallel module and try to figure out how it's done. You can maybe recreate the part you need.(This is the hardway)

      Use Sockets and code it yourself.(a bit easier)

      Ask the sysadmin to install the module.

      Install the module yourself and set the module path to your user module path.

      --
      My opinions may have changed,
      but not the fact that I am right

Re: How do I send one query to many sites & read back their replies?
by mdillon (Priest) on May 10, 2000 at 10:06 UTC
    if the unavailability of the module on your server is all that's stopping you from using it, why don't you set up your own module directory?

    more information on how to do so can be found here.

    if you don't have shell access to the server to build the modules yourself, you can mirror the server's directory structure on a local machine for the purpose of building the module and upload the result to the server via FTP.