推荐学习书目
› 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 · 4258 views
    This topic created in 2590 days ago, the information mentioned may be changed or developed.

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

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