Trying to run scrapy crawl command using crontab under virtual environment, and getting below error while running scrapy command from cron job –
UserWarning: Cannot import scrapy settings module myspider.settings warnings.warn("Cannot import scrapy settings module
%s" % scrapy_module)
.....
raise KeyError("Spider not found: %s" % spider_name) KeyError: 'Spider not found: myspider'
Any help or suggestion?
It was missing PYTHONPATH while running under crontab.
I have added it before my following cron job: