【发布时间】:2015-03-22 02:52:48
【问题描述】:
我想在https://www.google.com.tw/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=test 中获取下一页
但我的代码不起作用。
请指导我。非常感谢。
scrapy shell "https://www.google.com.tw/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=test"
response.xpath("//a[@id='pnnext']/@href")
【问题讨论】:
-
您没有收到您正在寻找的页面。使用命令 view(response) 打开浏览器