Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Getting data out of a remote web page

by zOrK (Initiate)
on Jun 11, 2008 at 19:42 UTC ( #691540=note: print w/ replies, xml ) Need Help??


in reply to Getting data out of a remote web page

#!/usr/bin/perl use strict; use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->timeout(10); my $response = $ua->get("http://www.unab.cl"); if ($response->is_success) { open(FILE, ">fileout.html"); print FILE $response->content; close(FILE); } else { die; } system("lynx --dump -nonumbers fileout.html > beauty.txt");


Comment on Re: Getting data out of a remote web page
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://691540]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-12-29 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (185 votes), past polls