Hi,
I wanted to download some online data from some site so i used perl LWP module.
code i wrote was like this:
The data is written to datafile. I am connecting 3 times with different query terms to that url. The problem i am facing is the speed i.e time taken to get the data.
Is there any other method which can reduce the time taken to get the data?
I tried fcgi but no improvements!!
Is LWP module itself is slow??
Any suggestions?
with regards
Archana
I wanted to download some online data from some site so i used perl LWP module.
code i wrote was like this:
Code:
use LWP; use LWP::UserAgent; $ua=new LWP::UserAgent; $ua->proxy(['http','ftp'],'http://group:guest@proxy.ibab.ac.in:3128'); open(FH,">datafile.txt"); chmod 0777,"datafile.txt"; $url="http://xyz.com"; sleep(5); $response=$ua->get($url); $result=$response->content; print FH $result close FH;
Is there any other method which can reduce the time taken to get the data?
I tried fcgi but no improvements!!
Is LWP module itself is slow??
Any suggestions?
with regards
Archana
Comment