LWP translate

2010年2月28日 发表评论 阅读评论

translate lwp

1.1 LWP简介
1.2 LWP的历史
1.3 安装LWP
1.4 注意事项
1.5 开始LWP之旅

2.1 URLs
2.2 HTTP交互
2.3 LWP::Simple
2.4 获取页面内容的其他方法(不使用LWP::Simple)
2.5 do_GET的一个完整例子
2.6 HTTP POST

———————–声明——————————-

LWP是用来下载、解析web页面的perl模块,Perl&Lwp就是一本介绍LWP的书籍,很值得一看,鉴于没有中文版本,因此作者在读书的过程中,将部分章节译为中文。希望可以方便大家的阅读。

声明:本文版权规3www8.cn&laiwei所有,转载请注明出处

perl&lwp英文介绍如下:
http://oreilly.com/catalog/9780596001780/
Perl & LWP

By Sean M. Burke
June 2002
Pages: 260
Description

The LWP (Library for WWW in Perl) suite of modules lets your programs download and extract information from the Web. Perl & LWP shows how to make web requests, submit forms, and even provide authentication information, and it demonstrates using regular expressions, tokens, and trees to parse HTML.. This book is a must have for Perl programmers who want to automate and mine the Web.
Full Description
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.

  1. 2010年9月3日16:38 | #1

    楼主太给力了!!!

  2. 临风
    临风
    2010年7月12日17:00 | #2

    楼主,你太强大了,多谢啊,期望继续翻译

  3. 2009年6月20日21:04 | #3

    @wilbur
    有啊~~
    不错~

  4. 2009年6月20日18:41 | #4

    你那里有lwp最新版的文档吗?我们下周开始翻译吧

  1. 本文目前尚无任何 trackbacks 和 pingbacks.