More information about the Underscore mailing list

[_] YAPCW (Yet another price comparison website)

Martin Wheatley martin at spodnet.net
Tue Sep 20 15:12:59 BST 2011

On 20/09/2011 2:35 PM, Philip Coombes wrote:
> Having done scrapers before by parsing the (usually badly formatted)
> HTML and also having done lots of Javascript lately using DOM navigation
> I was wondering if there was a, preferably PHP or perl, parser that
> generates a DOM tree and allows simple navigation using element, class
> and id selectors, in the manner of mootools or jquery. I've never come
> across one, so if anyone else has I would be interested to find out.
>
> Cheers
>
> Phil

In PHP there's DOMDocument and associated functions:

http://www.php.net/manual/en/domdocument.loadhtml.php

Martin