Posts Tagged ‘html’

HTML DOM and easy screen scraping in PHP

Friday, August 29th, 2008

One of my favourite features in JavaScript is its ability to interact with the DOM so easily. This is made even easier by various JavaScript libraries and their selector engines largely based on CSS expressions.
Working with XML is easy in PHP with various extensions such as SimpleXML, however unfortunately HTML is far more tedious. Thankfully however, I found this; PHP Simple HTML Dom parser (they could really do with a shorter name! I’ll go for PSDP).
It is a open source PHP solution to DOM parsing, from the documentation it seems to be based on jQuery. So, if your familiar with [...]