scrapyinghub 部署爬虫项目

最近在学习scrapy爬虫,在将项目部署到scrapyinghub上时,出现问题。。。

在执行scrapy deploy projectId

scrapyinghub 部署爬虫项目_第1张图片

显然是版本不匹配,导致包不能识别。

只需要对scrapinghub.yml文件添加https://support.scrapinghub.com/support/solutions/articles/22000200387-deploying-python-3-spiders-to-scrapy-cloud

stacks:
    default: scrapy:1.1-py3 # 这个注意,如果是python2.7 则写成scrapy:1.1

然后再重新部署

你可能感兴趣的:(爬虫,部署,爬虫,scrapy,scrapingHub)