推荐学习书目
› 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 · May 28, 2017 · 4914 views
    This topic created in 3447 days ago, the information mentioned may be changed or developed.
    4 replies  •  2017-06-05 17:01:47 +08:00
    bytenoob
    bytenoob
    May 28, 2017
    1
    current_request
    settings 里面的这个选项设置的为 1
    Zioyi
    Zioyi
    OP
    May 28, 2017
    2
    感谢, 我试过了,没有打达到我的预期,难道是因为我自己写了 下载器中间件的缘故。
    wingor
    wingor
    Jun 5, 2017
    3
    CONCURRENT_REQUESTS
    Default: 16

    The maximum number of concurrent (ie. simultaneous) requests that will be performed by the Scrapy downloader.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2408 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 15:41 · PVG 23:41 · LAX 07:41 · JFK 10:41
    ♥ Do have faith in what you're doing.