I am new to Python and am getting this error:
Traceback (most recent call last): File \"/usr/local/bin/scrapy\", line 4, in execute()
As the error says you have not correctly indented code, check_exists_sql is not aligned with line above it cursor = db.cursor() .
check_exists_sql
cursor = db.cursor()
Also use 4 spaces for indentation.
Read this http://diveintopython.net/getting_to_know_python/indenting_code.html