Extract dynamically displayed content on an HTML page using Java

I have an HTML page like

<html>
<head>
<!-- necessary java scripts -->
</head>
<body>
<div id="content"></div>
</body>

Using a script, when displaying the page, the corresponding html content is placed along with the div element with the identifier "content". Thus, after viewing the page, there is a lot of html content with a div element.

Now I need to extract the dynamically displayed content in the div element using Java. Can anyone suggest a way to do this?

+3
source share
3 answers

, script java. -. : Gecko/Webkit Java webkit gecko . java- html.

+1

html javax.swing.text.html.HTMLEditorKit.Parser.

http://java.sun.com/products/jfc/tsc/articles/bookmarks/

0

All Articles