Jump to ratings and reviews
Rate this book

Perl & LWP

Rate this book
Perl soared to popularity as a language for creating and managing web content, but with LWP (Library for WWW in Perl), Perl is equally adept at consuming information on the Web. LWP is a suite of modules for fetching and processing web pages.

The Web is a vast data source that contains everything from stock prices to movie credits, and with LWP all that data is just a few lines of code away. Anything you do on the Web, whether it's buying or selling, reading or writing, uploading or downloading, news to e-commerce, can be controlled with Perl and LWP. You can automate Web-based purchase orders as easily as you can set up a program to download MP3 files from a web site.

Perl & LWP covers:


Understanding LWP and its design Fetching and analyzing URLs Extracting information from HTML using regular expressions and tokens Working with the structure of HTML documents using trees Setting and inspecting HTTP headers and response codes Managing cookies Accessing information that requires authentication Extracting links Cooperating with proxy caches Writing web spiders (also known as robots) in a safe fashion
Perl & LWP includes many step-by-step examples that show how to apply the various techniques. Programs to extract information from the web sites of BBC News, Altavista, ABEBooks.com, and the Weather Underground, to name just a few, are explained in detail, so that you understand how and why they work. Perl programmers who want to automate and mine the web can pick up this book and be immediately productive. Written by a contributor to LWP, and with a foreword by one of LWP's creators, Perl & LWP is the authoritative guide to this powerful and popular toolkit.

260 pages, Paperback

First published January 1, 2002

57 people are currently reading
29 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
7 (20%)
4 stars
18 (51%)
3 stars
6 (17%)
2 stars
3 (8%)
1 star
1 (2%)
Displaying 1 - 2 of 2 reviews
Profile Image for Ali.
56 reviews5 followers
October 16, 2020
Awesome book to learn about LWP, spidering websites and many more topics. The only disadvantage is that the book is a bit outdated and the style in which the Perl codes are written is a bit old and needs to be updated.
208 reviews47 followers
October 17, 2013
Clearly portions of this book are outdated; especially portions of the book that discuss screen scraping websites. However, surprisingly, large portions are still relevant. I often use LWP to test web services where I work (especially web services that I maintain), and I was happy to learn about features that LWP has that will make my job significantly easier. Updated copy freely available online at http://lwp.interglacial.com/ .
Displaying 1 - 2 of 2 reviews

Can't find what you're looking for?

Get help and learn more about the design.