V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Zioyi
V2EX  ›  Python

如何控制 scrapy 的 downloader 的并发量为 1(即 Requests 请求类似串行的效果)

  •  
  •   Zioyi · 2017-05-28 09:43:19 +08:00 · 3517 次点击
    这是一个创建于 2497 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    2017-06-05 17:01:47 +08:00
    Yc1992
        1
    Yc1992  
       2017-05-28 11:49:31 +08:00
    current_request
    settings 里面的这个选项设置的为 1
    Zioyi
        2
    Zioyi  
    OP
       2017-05-28 19:33:34 +08:00
    感谢, 我试过了,没有打达到我的预期,难道是因为我自己写了 下载器中间件的缘故。
    wingor
        3
    wingor  
       2017-06-05 17:01:31 +08:00
    CONCURRENT_REQUESTS
    Default: 16

    The maximum number of concurrent (ie. simultaneous) requests that will be performed by the Scrapy downloader.
    wingor
        4
    wingor  
       2017-06-05 17:01:47 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2832 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 586ms · UTC 14:53 · PVG 22:53 · LAX 07:53 · JFK 10:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.