I need a parser class for PHP. I want to call the functions with a couple of paramaters and I want the output to be structured with Xpath (part of XML).
In parameter:
1) Starturl
2) Xpath expr (default:None) - An expression can look like this //head/meta
3) Force encoding/charset (Default: Use the charset from Starturl meta)
4) Accept gzip-encoded response (Default: Yes) - The class need to handle these encoded reponds
5) User-Agent - Be able to change the user agent
The output should be structured in Xpath nodes (See attached image)