I am trying to programatically call a spider through a script. I an unable to override the settings through the constructor using CrawlerProcess. Let me illustrate this with
It seems you want to have custom log for each spiders. You need to activate the logging like this:
from scrapy.utils.log import configure_logging class MySpider(scrapy.Spider): #ommited def __init__(self): configure_logging({'LOG_FILE' : "logs/mylog.log"})