Scrapy shell找不到响应对象
我是Scrapy的新手,为了了解它,我尝试按照本教程()学习 我使用fetch命令刮取了这个页面(),但是当我键入view(response)时,出现了以下错误:Scrapy shell找不到响应对象,scrapy,scrapy-shell,Scrapy,Scrapy Shell,我是Scrapy的新手,为了了解它,我尝试按照本教程()学习 我使用fetch命令刮取了这个页面(),但是当我键入view(response)时,出现了以下错误: >>> view(response) Start : this command could not be executed due to error: the system could not find the specified file. In line:1 character:1 + Start "file:/
>>> view(response)
Start : this command could not be executed due to error: the system could not find the specified file.
In line:1 character:1
+ Start "file:///tmp/tmppjvn5nzf.html"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
当我检查file:///tmp/tmppjvn5nzf.html
我看到页面中的信息已被删除,但没有分配给响应对象
您知道如何解决此问题吗?您应该尝试运行该命令
scrapy shell https://newyork.craigslist.org/d/real-estate/search/rea
这应该给你一个:
2020-06-17 13:05:02 [scrapy.core.engine] DEBUG: Crawled (200) <GET https://newyork.craigslist.org/d/real-estate/search/rea> (referer: None)
获取房屋清单中房屋的所有位置。如果你有任何问题的话,你应该能够很简单地让它工作,我建议你从YouTube上观看教程。它们是经过很好解释的教程,会带你慢慢地学习刮皮 您应该尝试运行该命令
scrapy shell https://newyork.craigslist.org/d/real-estate/search/rea
这应该给你一个:
2020-06-17 13:05:02 [scrapy.core.engine] DEBUG: Crawled (200) <GET https://newyork.craigslist.org/d/real-estate/search/rea> (referer: None)
获取房屋清单中房屋的所有位置。如果你有任何问题的话,你应该能够很简单地让它工作,我建议你从YouTube上观看教程。它们是经过很好解释的教程,会带你慢慢地学习刮皮