Scraping Links With PHP

 

In this tutorial you will learn how to build a PHP script that scrapes links from any web page.

What You’ll Learn

  1. How to use cURL to get the content from a website (URL).

  2. Call PHP DOM functions to parse the HTML so you can extract links.

  3. Use XPath to grab links from specific parts of a page.

  4. Store the scraped links in a MySQL database.

  5. Put it all together into a link scraper.

  6. What else you could use a scraper for.

  7. Legal issues associated with scraping content.

    Full article: http://www.lightspeedretail.com/cloud/blog/2007/08/scraping-links-with-php/

Leave a Reply

Your email address will not be published. Required fields are marked *

*