dannoura has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm using LWP::Simple to download pages from this site. Since I'm downloading 40,000 pages I'd like to know if there is any way to speed up the process since at the moment it's very slow. The code I'm using is:
#! c:\perl\bin use WWW::Search; $query = "prostate cancer"; $search = new WWW::Search('PubMed'); $search->native_query(WWW::Search::escape_query($query)); $search->maximum_to_retrieve(40000); while (my $result = $search->next_result()) { }
With the command:
query.pl>pc_query.txt(I'm hoping the direct dump into a text file slightly speeds things up)
Does anyone have any ideas about how to speed this process up?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: speed up download for LWP::Simple
by tilly (Archbishop) on Jul 09, 2003 at 04:04 UTC | |
by dws (Chancellor) on Jul 09, 2003 at 04:10 UTC | |
by dannoura (Pilgrim) on Jul 09, 2003 at 04:38 UTC | |
by tilly (Archbishop) on Jul 09, 2003 at 04:50 UTC | |
by dannoura (Pilgrim) on Jul 09, 2003 at 04:56 UTC | |
|
Re: speed up download for LWP::Simple
by PodMaster (Abbot) on Jul 09, 2003 at 07:07 UTC |