

If you are like me, you probably have many examples of web forms that you find yourself filling out over and over again. Sean's done a great job of showing how this powerful library can be used to make tools that automate various tasks on the Web. This book tells you how you can write your own useful web client applications with LWP and its related HTML modules.



And the good news is that LWP can help automate them all. These days there is almost no end to the information at our fingertips: news, stock quotes, weather, government info, shopping, discussion groups, product info, reviews, games, and other entertainment. A lot has happened to the web since then. As a result, I got involved in LWP, the Perl web client library. Over time, I moved from hacking on the server side to the client side but stayed with Perl as the programming language of choice. CGI was not invented yet, so all we had were servlets (although we didn't call them that then). What was different was it was implemented in Perl. The first versions of Mosaic had just showed up, Gopher and Wais were still hot technology, and I discovered an HTTP server program called Plexus. While every precaution has been taken in the preparation of this book, the publisher and the author assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.įoreword I started playing around with the Web a long time ago-at least, it feels that way. The association between the image of blesbok and the the topic of Perl and LWP is a trademark of O'Reilly & Associates, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. Where those designations appear in this book, and O'Reilly & Associates, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. For more information contact our corporate/institutional sales department: 80 or Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly & Associates, Inc. Online editions are also available for most titles (). O'Reilly & Associates books may be purchased for educational, business, or sales promotional use. Published by O'Reilly & Associates, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. All rights reserved.Ĭopyright © 2002 O'Reilly & Associates, Inc. Table of Contents Copyright Page Foreword Preface Chapter 1: Introduction to Web Automation Chapter 2: Web Basics Chapter 3: The LWP Class Model Chapter 4: URLs Chapter 5: Forms Chapter 6: Simple HTML Processing with Regular Expressions Chapter 7: HTML Processing with Tokens Chapter 8: Tokenizing Walkthrough Chapter 9: HTML Processing with Trees Chapter 10: Modifying HTML with Trees Chapter 11: Cookies, Authentication, and Advanced Requests Chapter 12: Spiders Appendix A: LWP Modules Appendix B: HTTP Status Codes Appendix C: Common MIME Types Appendix D: Language Tags Appendix E: Common Content Encodings Appendix F: ASCII Table Appendix G: User's View of Object-Oriented Modules Index ColophonĬopyright © 2002 O'Reilly & Associates. Burke ISBN 8-9 First Edition, published June 2002.
