Tables of Contents for Perl and Lwp
Introduction to Web Automation
1
14
Fetching Documents Without LWP::Simple
24
1
Programming with LWP Classes
32
1
Inside the do GET and do POST Functions
33
1
HTTP::Response Objects
42
5
LWP Classes: Behind the Scenes
47
1
Converting Absolute URLs to Relative
55
2
Converting Relative URLs to Absolute
57
1
Elements of an HTML Form
59
1
Automating Form Analysis
62
2
Idiosyncrasies of HTML Forms
64
6
POST Example: License Plates
70
4
POST Example: ABEBooks.com
74
7
Simple HTML Processing with Regular Expressions
85
15
Automating Data Extraction
85
2
Regular Expression Techniques
87
4
When Regular Expressions Aren't Enough
93
1
Example: Extracting Links from a Bookmark File
93
3
Example: Extracting Links from Arbitrary HTML
96
2
Example: Extracting Temperatures from Weather Underground
98
2
HTML Processing with Tokens
100
19
Basic HTML::TokeParser Use
101
4
More HTML::TokeParser Methods
112
5
Tokenizing Walkthrough
119
13
HTML Processing with Trees
132
16
Introduction to Trees
132
1
Modifying HTML with Trees
148
17
Detaching and Reattaching
153
3
Attaching in Another Tree
156
5
Creating New Elements
161
4
Cookies, Authentication, and Advanced Requests
165
13
Adding Extra Request Header Lines
169
3
An HTTP Authentication Example: The Unicode Mailing Archive
175
3
Types of Web-Querying Programs
178
2
A User Agent for Robots
180
1
Example: A Link-Checking Spider
181
16
Ideas for Further Expansion
197
2
E. Common Content Encodings
209
2
G. User's View of Object-Oriented Modules
224
11