Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Jsoup を使用して、HTML ページからすべての段落を抽出したいと考えてい<p>ます</p>。
<p>
</p>
どうすればこれを達成できますか?
あなたはただできますか:
myDocument.getElementsByTag('p')
JSoup getElementsByTag
次に、返された要素を反復処理して、データ/テキスト/所有テキスト/やりたいことに最も関連していると思われるものを取得できます。
JSoup Element.text()