【发布时间】:2018-02-13 00:15:05
【问题描述】:
我正在尝试在终端中启动 scrapy shell。但是它不断给出无效的语法错误。我正在使用 Python 2.7.13 和 Mac Sierra 10.12.6。
>>> import scrapy
>>> scrapy shell 'http://quotes.toscrape.com/page/1/'
File "<stdin>", line 1
scrapy shell 'http://quotes.toscrape.com/page/1/'
^
SyntaxError: invalid syntax
非常感谢!
【问题讨论】:
-
这是一个 shell 命令,而不是 Python 命令。先退出 Python。
标签: python shell terminal scrapy