我需要幫助從JSOUP獲取HTML中的字符串。使用JSOUP從HTML中獲取字符串
該文件是建立像:
<body>
<span class="a-touch">
<div class"a-container">
<div class"a-box">
<div class="a-row a-spacing-small">
<b>string1</b><br/>string2 97<br/>String3
<br/>string4</>string5<br/>
</div>
現在我需要得到的字符串。 我使用Google搜索,但只能找到表格的例子等等。
我在這裏遇到的問題是,在這裏還有一些其他的「div分支」,其中也有一些文字。 我上面顯示的代碼只是我需要的分支。 但很高興知道,我現在可以用它來解決另一個問題! – Hunter