Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: my First HTML based script.

by monktim (Friar)
on Oct 23, 2003 at 20:47 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-19 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found