Easy scraping and HTML parsing with PHP5 and XPath


/ Published in: PHP
Save to your folder(s)

This example uses file_get_contents to retrieve remote HTML. From there, we can parse through it using PHP5's DOMDocument and DOMXpath. XPath Queries are easy to create using the Firefox extension "XPather"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.