如何通过setuptools安装Crawlera

2024-04-16 04:26:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我想在docker中安装crawlera avec setuptools。你知道吗

在我的刮擦.cfg我拥有的文件:

[deploy=test]
url = http://localhost:6800/
project = Crawling

我通过scrapyd-deploy -l进行测试

test              http://localhost:6800/

在我的setup.py中 从setuptools import setup中,查找\u包

setup(
    name         = 'Crawling',
    version      = '1.0',
    packages     = find_packages(),
    entry_points = {'scrapy': ['settings = Crawling.settings']},
    install_requires=['scrapy-crawlera'],
)

在我的requires.txt的结尾,我有scrapy-crawlera 但是crawlera没有安装在我的docker中。你知道吗


Tags: dockertestlocalhosthttpsettingspackagessetupcfg