Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对蜘蛛进行了更改以使用 scrapinghub API 的某些方法,并尝试使用“shub deploy”将其重新部署到 Scrapy Cloud。我收到一个错误:ImportError: No module named scrapinghub
它指向蜘蛛中的导入行
from scrapinghub import Connection
shub 版本 2.5.0 scrapinghub (1.9.0)
我能够在本地运行蜘蛛。
任何想法是什么问题?
添加 requirements.txt 与
# Scrapinghub scrapinghub==1.9.0
并更新 scrapinghub.yml 解决了这个问题。感谢卡洛斯·佩尼亚