want to join us? register, it's easy | help

browse by tag: xpath

sort by

newest, oldest, most popular


category icon

How To Build A Link Scraper Using PHP

in PHP added by jlaing, on 12/8/2007 advanced tutorials curl dom scraping user-agent xpath

A basic tutorial on how to build a PHP script that scrapes links from any web page. The article goes over extracting content from a site using cURL, parsing the content with PHP's Dom functions, finding links using XPath queries, and storing the links in a MySQL database. Legal issues associated with scraping content is discussed at the end of the tutorial.

comment save report