Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法下载图片 #517

Open
liyuewu opened this issue Nov 20, 2024 · 1 comment
Open

无法下载图片 #517

liyuewu opened this issue Nov 20, 2024 · 1 comment

Comments

@liyuewu
Copy link

liyuewu commented Nov 20, 2024

大佬好,我是python小白,用您的项目准备写论文。目前遇到了图片下载的问题。我用的是macOS,python版本是最新的3.13.0
我在setting里按您说的取消了图片pipeline的#,图片储存地址我没有修改,还是“./”。但是程序运行后,csv可以正常生成,但是终端里提示了以下错误:
NoneType: None
2024-11-20 09:13:26 [scrapy.pipelines.media] ERROR: [Failure instance: Traceback: <class 'TypeError'>: MyImagesPipeline.file_path() got an unexpected keyword argument 'item'
/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/scrapy/utils/defer.py:104:mustbe_deferred
/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/scrapy/pipelines/files.py:596:media_to_download

麻烦大佬看一下是系统设置错误,还是什么问题?谢谢

@dataabc
Copy link
Owner

dataabc commented Nov 20, 2024

您参考下 #473

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants