PHP Simple HTML DOM Parser
simplehtmldom.sourceforge.net
simplehtmldom.sourceforge.net
Very good application, but watch out for memory leaks. Leaks like a sieve when you miss a ->clear() call in your destructors if you're not using the circular reference detection feature in the 5.3 garbage collector.
I've done scraping (e.g. w/ BeautifulSoup) but haven't looked to see how true the parses are to what IE/FF/WebKit would produce.
(On my list of things to look into: html5lib -- http://code.google.com/p/html5lib/ ... is it any good?)
You might also have luck with AppleScript/RubyCocoa/MacRuby+Safari. I've tried a couple other options like HTMLUnit (which google uses with GWT), and Mozilla Java Html Parser, which Dapper.net uses. I couldn't get them running, but YMMV.
Anyone know if this new library is better than that approach?