Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi ,
I want help on the following problem :
How can I read data from a webpage and store it in file.I have the following script code in perl :
#!/usr/bin/perl use LWP::Simple; $url = "http://www.myurl.com/"; $file = "/path/to/savefile.txt"; getstore($url, $file);
But What i want is if I have a web page like yahoo.com or rediff.com or any web page opened in web browser then I need to read the data of that opened page in browser .
Eg :
1.if i have yahoo.com page opened in browser then I need to read that page data and store it in file .
2.if i have rediff.com page opened in browser then I need to read that page data and store it in file .
3.If i have any web page opened then I need to read that page data and store it in file .
When i use ,
it is just like hard coding a particular link , which i don't want.$url = "http://www.myurl.com/";
How can i achieve this .
Please let me know on the above problem .
Thankyou !20030720 Edit by Corion: Added formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: Read web page Data
by jeffa (Bishop) on Jul 20, 2003 at 14:21 UTC | |
|
Re: Read web page Data
by Fletch (Bishop) on Jul 20, 2003 at 11:09 UTC | |
by Anonymous Monk on Jul 20, 2003 at 12:10 UTC | |
|
Re: Read web page Data
by thinker (Parson) on Jul 20, 2003 at 08:26 UTC | |
by Anonymous Monk on Jun 12, 2013 at 06:50 UTC | |
by Anonymous Monk on Jul 20, 2003 at 12:05 UTC | |
by Anonymous Monk on Jun 17, 2010 at 17:08 UTC |