You might want to have a look at the
Simple HTML DOM Library
There is a little tutorial here:
http://www.developertutorials.com/tutorials/php/easy-screen-scraping-in-php-simple-html-dom-library-simplehtmldom-398/
That one is a screen scraping API that lets you feed html to it and then get parts of it in a jQuery similiar language.