回答編集履歴

2

修正

2016/03/10 10:06

投稿

lilithchan
lilithchan

スコア249

test CHANGED
@@ -29,3 +29,11 @@
29
29
 
30
30
 
31
31
  ②は↑のサンプルコードのgetElementByIdで行けるかと。
32
+
33
+
34
+
35
+
36
+
37
+ ・・っと、スミマセン削除でしたね。
38
+
39
+ .remove()とすれば削除できると思います。

1

tuiki

2016/03/10 10:06

投稿

lilithchan
lilithchan

スコア249

test CHANGED
@@ -1,6 +1,12 @@
1
1
  DOM構築してくれるHtmlパーサを使ってみてはどうでしょうか。
2
2
 
3
3
  jsoupが良い感じです。
4
+
5
+
6
+
7
+ 以下のページが参考になります。
8
+
9
+ [参考サイト](http://qiita.com/opengl-8080/items/d4864bbc335d1e99a2d7)
4
10
 
5
11
 
6
12
 
@@ -14,6 +20,12 @@
14
20
 
15
21
 
16
22
 
17
- 以下のページ参考にす。
23
+ 環境がないので試していせんが・・
18
24
 
25
+ ①はCSS Selectorの:last-childを使えば1行のコードで行けそう。
26
+
19
- http://qiita.com/opengl-8080/items/d4864bbc335d1e99a2d7
27
+ [selector](http://jsoup.org/apidocs/org/jsoup/select/Selector.html)
28
+
29
+
30
+
31
+ ②は↑のサンプルコードのgetElementByIdで行けるかと。