エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Use CSS selectors to find elements: jsoup Java HTML parser
Problem You want to find or manipulate elements using CSS selectors. Solution Use the Element.sel... Problem You want to find or manipulate elements using CSS selectors. Solution Use the Element.select(String cssSelector) and Elements.select(String selector) methods: File input = new File("/tmp/input.html"); Document doc = Jsoup.parse(input, "UTF-8", "https://example.com/"); Elements links = doc.select("a[href]"); // a with href Elements pngs = doc.select("img[src$=.png]"); // img with src ending



2010/12/08 リンク