jsoup Example

Example how to access HTML elements in Java.

HTML Code
http://woppr.de/html

<html>
<head>
<title>My HTML page</title>
</head>
<body>
<div id="1">
<h1>Inhalt div 1</h1>
</div>
<div id="2">
<h1>Inhalt div 2</h1>
</div>
</body>
</html>

Eclipse

jsoup_eclipse

Code

jsoup_code

Source
http://jsoup.org/cookbook/extracting-data/dom-navigation

Source Code (git)

https://github.com/woppr/jsoup_example

https://github.com/woppr/jsoup_example.git

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert