user4943236
user4943236

Reputation: 6344

Scrapy: Create Project returning error

I'm learning scrapy to create a crawler that could crawl website and get back the results, however on creating a new project, it is returning an error. I tried creating a folder manually, but again it returned an error. Any idea how to resolve this.

SyntaxError: invalid syntax

import scrapy scrapy startproject stack

Upvotes: 4

Views: 4984

Answers (1)

Chandra kant
Chandra kant

Reputation: 1574

Looks like you are trying the command scrapy startproject stack inside python interactive shell.
Run the same command directly on bash shell, and not inside python shell.
And you don't need import scrapy command to create a scrapy project.

Upvotes: 1

Related Questions