Scrapy - 设置问题 FILES_STORE?
Scrapy - Issue with setting FILES_STORE?
所以我有一个扩展 Scrapy 当前 FilesPipeline. However, I'm having trouble with setting the FILES_STORE 变量的自定义管道。我当前的文件结构是:
my_scraper.py
files/
#this is where I want the files to download to
所以,我设置了 FILES_STORE=/files/
和 运行 蜘蛛。但是当我这样做时,出现以下错误:
PermissionError: [Errno 13] Permission denied: '/files/'
为什么会这样?我做错了什么吗?
如果它对其他人有用,那只是一个简单的错误 - FILES_STORE
需要完整路径,而不仅仅是文件夹的相对路径。
所以我有一个扩展 Scrapy 当前 FilesPipeline. However, I'm having trouble with setting the FILES_STORE 变量的自定义管道。我当前的文件结构是:
my_scraper.py
files/
#this is where I want the files to download to
所以,我设置了 FILES_STORE=/files/
和 运行 蜘蛛。但是当我这样做时,出现以下错误:
PermissionError: [Errno 13] Permission denied: '/files/'
为什么会这样?我做错了什么吗?
如果它对其他人有用,那只是一个简单的错误 - FILES_STORE
需要完整路径,而不仅仅是文件夹的相对路径。