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.
精彩评论