質問編集履歴
2
url変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
###前提・実現したいこと
|
2
2
|
|
3
|
-
Mechanizeを使って、[ネットスーパー](https://www.aeonnetshop.com/shop/r/r5603_n01050000001160_v80/)の商品名と価格
|
3
|
+
Mechanizeを使って、[ネットスーパー](https://www.aeonnetshop.com/shop/r/r5603_n01050000001160_v80/)の商品名と価格をスクレイピングするコードを書いています。
|
4
4
|
|
5
5
|
|
6
6
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
agent = Mechanize.new
|
28
28
|
|
29
|
-
page = agent.get("https://www.aeonnetshop.com/shop/r/r5603
|
29
|
+
page = agent.get("https://www.aeonnetshop.com/shop/genre/genre.aspx?genre=5603&shop=01050000001160&pps=80")
|
30
30
|
|
31
31
|
|
32
32
|
|
1
タイトル変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Mechanizeでスクレイピング
|
1
|
+
Mechanizeでスクレイピングをしたいが、期待するテキストがとりだせない。
|
test
CHANGED
@@ -28,8 +28,6 @@
|
|
28
28
|
|
29
29
|
page = agent.get("https://www.aeonnetshop.com/shop/r/r5603_n01050000001160_v80/")
|
30
30
|
|
31
|
-
elements = page.search('span.pc2015-item-name')
|
32
|
-
|
33
31
|
|
34
32
|
|
35
33
|
name = page.search('span.pc2015-item-name')
|