【发布时间】:2020-06-16 20:45:37
【问题描述】:
我是 Scrapy 的新手,并试图按照本教程 (https://www.pythongasm.com/introduction-to-scrapy/) 来了解它。
我使用 fetch 命令抓取了这个页面 (https://newyork.craigslist.org/d/real-estate/search/rea),但是当我输入 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:///tmp/tmppjvn5nzf.html"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
当我检查file:///tmp/tmppjvn5nzf.html 时,我看到页面中的信息被抓取,但没有分配给响应对象。
你知道我该如何解决这个问题吗?
【问题讨论】:
标签: scrapy scrapy-shell