質問編集履歴
2
タイトル修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
scrapy shell response.xpath().extract()で抽出できない
|
1
|
+
scrapy shell, response.xpath().extract()で抽出できない
|
test
CHANGED
File without changes
|
1
リンクの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
例として、以下イメージのように要素 li#mhi2nd をScrapyのshell、xpathで抽出しようとすると、[]という空(?)の値が返ってきます。一方、別のxpath(/html/head/title)では正常に抽出されます。
|
1
|
+
例として[Yahoo! Japanトップページ](https://www.yahoo.co.jp/)で、以下イメージのように要素 li#mhi2nd をScrapyのshell、xpathで抽出しようとすると、[]という空(?)の値が返ってきます。一方、別のxpath(/html/head/title)では正常に抽出されます。
|
2
2
|
|
3
3
|
|
4
4
|
|