LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Web Page Retrieval & Processing with PERL (https://www.linuxquestions.org/questions/programming-9/web-page-retrieval-and-processing-with-perl-107109/)

BBQ_Matt 10-22-2003 08:45 AM

Web Page Retrieval & Processing with PERL
 
I want to retrieve a web page (which I can't list due to posting rules) and retrieve the stock information for storage in a file.

I've tried wget and it's doesn't seem to work properly. I believe wget doesn't work properly because to wed page is .jsp file with multiple options.

I'm trying to do this in PERL as I'm a bit more familar with processing the data in PERL line by line. I just need to be able to retrieve the data in an automated way.

Does anybody have any tips?

ToniT 10-22-2003 10:07 PM

You could use the curl.

Or read the 'man perlipc' to find out how you can connect by yourself. The http-protocol
is easy to speak. Something like:[code]
$netcat www.hut.fi 80
GET http://www.hut.fi/index.html http/1.0

[code] gives me a web-page.

david_ross 10-23-2003 02:01 PM

You can use the LWP module - lots of info available if google.

silatts 10-25-2003 09:20 AM

http://search.cpan.org/~gaas/libwww-....74/lib/LWP.pm

all you probably need is lwp-mirror - try http://search.cpan.org for mirror :)

Sil


All times are GMT -5. The time now is 12:54 AM.