Reputation: 185
I'm writing a spider on Scrapy splash and I'm starting to get this error:
File "C:\Users\Name\PycharmProjects\splash\project\project\spiders\scrapy.py", line 5
start_urls = [
^
IndentationError: unindent does not match any outer indentation level
Here are the code lines where I get it:
import scrapy
from scrapy_splash import SplashRequest
class ScrapySpider(scrapy.Spider):
name = "spide1"
start_urls = [
'link1',
'link2',
etc
Why am I getting this mistake and how can I fix it?
Upvotes: 1
Views: 140
Reputation: 185
The problem was two spaces before def
After adding 2 spaces - problem has been solved
Upvotes: 0