开发者

HTML of a parsed page

I am using Cobra parsing engine and I wish to get HTML code of an already parsed page (e.g. after javascripts executions). Is it possib开发者_C百科le to do? Cobra may be replaced with another open-source java web parser if needed.


Wow, Cobra actually seems to do it: Example of Usage

It actually gives you a tree of HTML DOM-Nodes. You can use HTMLWriter to get the HTML-Text if you prefer, but if you're interested in some specific portion of it, use XPath, it's much cleaner than to search in the HTML-String.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜