this is my code
class Test(Spider):
self.settings.overrides['JOBDIR']= "seen"
I got:
File "C:Python27libsite-packagesscrapyspider.py", line 46, in settings
return self.crawler.settings
File "C:Python27libsite-packagesscrapyspider.py", line 41, in crawler
assert hasattr(self, '_crawler'), "Spider not bounded to any crawler"
AssertionError: Spider not bounded to any crawler
I am extending Spider
and I am not using Crawler
because I don't have links nor rules to follow
I am guessing that my problem is because I didn't import the settings well and I need your help please
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…