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

为什么 scrapy 框架选择使用 Twisted 而不是 asyncio+aiohttp 等实现?

  •  
  •   waibunleung · Aug 26, 2019 · 4384 views
    This topic created in 2626 days ago, the information mentioned may be changed or developed.

    如题,两种方案都是异步,为什么选择了 twisted 而不是 asyncio ? 求解疑

    8 replies  •  2019-08-27 12:36:53 +08:00
    wwqgtxx
    wwqgtxx
    Aug 26, 2019 via iPhone
    1
    因为当初开发时候的还没有 aiohttp
    wzwwzw
    wzwwzw
    Aug 26, 2019
    2
    可以看下 scrapy 开发的时候有没有 asyncio。
    ipwx
    ipwx
    Aug 26, 2019 via Android
    3
    历史决定了只有 twisted 才能救 scrapy... 完了编不下去了
    iPhoneXI
    iPhoneXI
    Aug 26, 2019 via Android
    4
    Python 2 时代,那会儿就 Tornado/Gevent/Twisted
    Dustyposa
    Dustyposa
    Aug 26, 2019
    5
    说不定正在开发 异步版本呢 。
    requests3 是正在开发异步版本,用 37 语法应该会更舒服。
    tabris17
    tabris17
    Aug 26, 2019
    6
    py2 就不要考虑了?
    est
    est
    Aug 26, 2019
    7
    @iPhoneXI 说不定连 tornado 都没有。。。
    julyclyde
    julyclyde
    Aug 27, 2019
    8
    @tabris17 不要考虑了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1437 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 18:25 · PVG 02:25 · LAX 10:25 · JFK 13:25
    ♥ Do have faith in what you're doing.