简体   繁体   中英

Scrapy shell keeps returning invalid syntax in terminal

I am trying to launch scrapy shell in terminal. However it keeps giving invalid syntax error. I am using Python 2.7.13 and 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

Thanks lot!

You do not use this in the Python interpreter. It was meant to be run in a terminal

You must not execute this in the Python interpreter but open a Terminal and run it in that instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM