Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: my First HTML based script.

by monktim (Friar)
on Oct 23, 2003 at 20:47 UTC ( #301715=note: print w/replies, xml ) Need Help??


in reply to my First HTML based script.

You can use LWP to do it. There is also a package called Mechanize on CPAN you can use. It is a layer over LWP. You may want to get this book http://www.oreilly.com/catalog/perllwp/. Shop around, it's cheaper on Amazon.

There's even a link with examples. http://examples.oreilly.com/perllwp/

This will grab the html from the google homepage.

use strict; use warnings; use LWP; my $browser; $browser = LWP::UserAgent->new() unless $browser; my $resp = $browser->get('http://www.google.com'); print "$resp->content\n";

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-08-15 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?