Mechanize and BeautifulSoup for PHP? [closed]

隐身守侯 提交于 2019-11-29 22:25:43
Jon

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!