推荐学习书目
› 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
Ewig
V2EX  ›  Python

scrapy 随机请求时间

  •  
  •   Ewig · Jan 18, 2019 · 2570 views
    This topic created in 2808 days ago, the information mentioned may be changed or developed.

    "RANDOM_DELAY": 10, 这个是 0 到 10 ??我想 5-10 如何设置?

    1 replies  •  2019-01-18 09:52:10 +08:00
    zhu
        1
    zhu  
       Jan 18, 2019
    https://doc.scrapy.org/en/latest/topics/settings.html?highlight=time%20out#randomize-download-delay

    ```
    RANDOMIZE_DOWNLOAD_DELAY
    Default: True

    If enabled, Scrapy will wait a random amount of time (between 0.5 * DOWNLOAD_DELAY and 1.5 * DOWNLOAD_DELAY) while fetching requests from the same website.
    ```
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1092 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:07 · PVG 02:07 · LAX 11:07 · JFK 14:07
    ♥ Do have faith in what you're doing.