When I try to use HTTPCACHE with scrapyd I get the following error:
[scrapy] WARNING: Disabled Httpcache Middlware: unable to find scrapy.cfg file to infer project data dir
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The problem is that http caching defaults to using the relative path
httpcache.This works when you run the spider normally from the command line, but not when running it as a service.
The solution is to set the
HTTPCACHE_DIR[docs] setting to an absolute path.