此商品已下架,若仍需天瓏代為查詢或代購書籍,請與門市客服人員聯繫,或 E-mail 至 service@tenlong.com.tw 將有專人為您服務。

Perl & LWP
暫譯: Perl 與 LWP

Sean M. Burke

  • 出版商: O'Reilly
  • 出版日期: 2002-07-30
  • 售價: $1,590
  • 貴賓價: 9.5$1,511
  • 語言: 英文
  • 頁數: 262
  • 裝訂: Paperback
  • ISBN: 0596001789
  • ISBN-13: 9780596001780
  • 相關分類: Perl 程式語言
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

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

Table of Contents

Foreword

Preface

1. Introduction to Web Automation

2. Web Basics

3. The LWP Class Model

4. URLs

5. Forms

6. Simple HTML Processing with Regular Expressions

7. HTML Processing with Tokens

8. Tokenizing Walkthrough

9. HTML Processing with Trees

10. Modifying HTML with Trees

11. Cookies, Authentication, and Advanced Requests

12. Spiders

A. LWP Modules

B. HTTP Status Codes

C. Common MIME Types

D. Language Tags

E. Common Content Encodings

F. ASCII Table

G. User's View of Object-Oriented Modules

Index

商品描述(中文翻譯)

Perl 在創建和管理網頁內容方面迅速流行起來,但透過 LWP(Perl 的 WWW 函式庫),Perl 同樣擅長於從網路上獲取資訊。LWP 是一套用於獲取和處理網頁的模組。

網路是一個龐大的資料來源,包含從股價到電影演職員表的各種資訊,使用 LWP,所有這些資料只需幾行程式碼即可獲得。無論您在網路上進行購買或銷售、閱讀或寫作、上傳或下載,從新聞到電子商務,都可以使用 Perl 和 LWP 來控制。您可以像設置一個程式來從網站下載 MP3 檔案一樣輕鬆地自動化基於網路的採購訂單。

《Perl & LWP》涵蓋了:
- 理解 LWP 及其設計
- 獲取和分析 URL
- 使用正則表達式和標記從 HTML 中提取資訊
- 使用樹狀結構處理 HTML 文件的結構
- 設定和檢查 HTTP 標頭和回應碼
- 管理 Cookies
- 訪問需要身份驗證的資訊
- 提取連結
- 與代理快取協作
- 以安全的方式編寫網路爬蟲(也稱為機器人)

《Perl & LWP》包含許多逐步示例,展示如何應用各種技術。從 BBC News、Altavista、ABEBooks.com 和 Weather Underground 等網站提取資訊的程式詳細說明,讓您理解它們的運作方式和原因。希望自動化和挖掘網路的 Perl 程式設計師可以拿起這本書,立即開始生產力。這本書由 LWP 的貢獻者撰寫,並由 LWP 的創建者之一撰寫前言,《Perl & LWP》是這個強大且受歡迎的工具包的權威指南。

目錄
前言
序言
1. 網路自動化介紹
2. 網路基礎
3. LWP 類別模型
4. URL
5. 表單
6. 使用正則表達式進行簡單的 HTML 處理
7. 使用標記進行 HTML 處理
8. 標記化步驟
9. 使用樹狀結構進行 HTML 處理
10. 使用樹狀結構修改 HTML
11. Cookies、身份驗證和進階請求
12. 爬蟲
A. LWP 模組
B. HTTP 狀態碼
C. 常見 MIME 類型
D. 語言標籤
E. 常見內容編碼
F. ASCII 表
G. 使用者對物件導向模組的視圖
索引