Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Strating Internet related scripts

by ajt (Prior)
on Oct 18, 2002 at 08:18 UTC ( [id://206244]=note: print w/replies, xml ) Need Help??


in reply to Strating Internet related scripts

Depending on how many hoops you have to jump through this could be very easy or very hard.

If you don't have to contend with logging in and cookies then it could be easier to use a tool such as wGet to get the work done. It runs on most flavours of Unix, and on Windows if you have Cygwin installed.

A more Perlish solution would be to use LWP to interact with the web server for you, it can handle logins, and cookies for you, and grab the pages you want. There are a range of HTML parsing tools at your disposal, and to the list already suggested I would add HTML::TreeBuilder which I think is quite good and often overlooked.

One thing I would recommend is the Sean Burke's excellent excellent "Perl and LWP" (ISBN 0596001789) from O'Reilly. It's a little on the slim side, but it does cover the LWP module, and several of the HTML parsing modules, with plenty of examples and useful explanation. There are reviews: Perl & LWP and Perl and LWP.

Other good resources are davorg's "Data Munging with Perl" (ISBN 1930110006) which has a good chunk of grabbing and parsing web pages, and the long defunct Web Client Programming with Perl.


--
ajt

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-28 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found