0

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 possible to do? Cobra may be replaced with another open-source java web parser if needed.

durron597
  • 31,968
  • 17
  • 99
  • 158
Alex
  • 1

1 Answers1

2

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.

giraff
  • 4,601
  • 2
  • 23
  • 35