Kirsteen Ng
Kirsteen Ng

Reputation: 111

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!

Upvotes: 4

Views: 2478

Answers (1)

Xantium
Xantium

Reputation: 11603

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.

Upvotes: 4

Related Questions