I was wondering if there was anything similar like Mechanize or BeautifulSoup for PHP?
SimpleTest provides you with similar functionality:
http://www.simpletest.org/en/browser_documentation.html
I don't know how powerful BeautifulSoup is, so maybe this won't be as great ; but you could try using DOMDocument::loadHTML
:
The function parses the HTML contained in the string source . Unlike loading XML, HTML does not have to be well-formed to load.
After using this, you should be able to access the HTML document using DOM methods -- including XPath queries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With