推荐学习书目
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 · 4518 views
    This topic created in 3292 days ago, the information mentioned may be changed or developed.
    4 replies    2017-06-05 17:01:47 +08:00
    bytenoob
        1
    bytenoob  
       May 28, 2017
    current_request
    settings 里面的这个选项设置的为 1
    Zioyi
        2
    Zioyi  
    OP
       May 28, 2017
    感谢, 我试过了,没有打达到我的预期,难道是因为我自己写了 下载器中间件的缘故。
    wingor
        3
    wingor  
       Jun 5, 2017
    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   ·   Solana   ·   5896 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 93c8b4a0 · 43ms · UTC 03:22 · PVG 11:22 · LAX 20:22 · JFK 23:22
    ♥ Do have faith in what you're doing.