質問編集履歴
1
スクレイピングが許可されていないサイトを使用してしまっていたため、URLを変更しスクレイピング先を変えました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,7 +46,7 @@
|
|
46
46
|
|
47
47
|
FileWriter filewriter = new FileWriter(file);
|
48
48
|
|
49
|
-
Document document = Jsoup.connect("https://wa
|
49
|
+
Document document = Jsoup.connect("https://news.yahoo.co.jp/").get();
|
50
50
|
|
51
51
|
Elements elements = document.select("h6");
|
52
52
|
|