Skip to main content
Back to Books
Cover of php|architect's Guide to Web Scraping with PHP

php|architect's Guide to Web Scraping with PHP

By Matthew Turland

ISBN
9780981034515
Pages
192
Published

This book is no longer available for purchase.

Despite all the advancements in web APIs and interoperability, it's inevitable that, at some point in your career, you will have to “scrape” content from a website that was not built with web services in mind. And, despite its sometimes less-than-stellar reputation, web scraping is usually an entire legitimate activity—for example, to capture data from an old version of a website for insertion into a modern CMS.

This book, written by scraping expert Matthew Turland, covers web scraping techniques and topics that range from the simple to exotic using a variety of technologies and frameworks:

  • Understanding HTTP requests
  • The PHP HTTP streams wrapper
  • cURL
  • pecl_http
  • PEAR:HTTP
  • Zend_Http_Client
  • Building your own scraping library
  • Using Tidy
  • Analyzing code with the DOM, SimpleXML and XMLReader extensions
  • CSS selector libraries
  • PCRE pattern matching
  • Tips and Tricks
  • Multiprocessing / parallel processing
Matthew Turland

About the author

Matthew Turland

Matthew Turland has been working with PHP since 2002. He has been both an author and technical editor for php|architect Magazine, spoken at multiple conferences, and contributed to numerous PHP projects. He is the author of Web Scraping with PHP, 2nd Edition and co-author of SitePoint's PHP Master: Write Cutting-Edge Code. In his spare time, he likes to bend PHP to his will to scrape web pages and run IRC bots.

Our Partners

Collaborating with industry leaders to bring you the best PHP resources and expertise

Interested in partnering? Get in touch →