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

feedparser的解析速度是不是有点慢啊

  •  
  •   tonghuashuai ·
    tonghs · Oct 24, 2013 · 3334 views
    This topic created in 4726 days ago, the information mentioned may be changed or developed.

    传一个url进去到返回值返回要5、6秒,大家觉得呢?

    解析多个可以用多线程处理,但是还是取决于最慢的那一个,我用鲜果rss阅读器发现没这么慢啊,基本上不需要等这么长时间。
    还是我的用法不对
    6 replies  •  1970-01-01 08:00:00 +08:00
    est
        1
    est  
       Oct 24, 2013
    LZ觉得鲜果阅读器的姿势是——输入一个URL,鲜果服务器马上去解析?

    而不会是,预先解析结果直接保存在服务器上直接输出?
    cute
        2
    cute  
       Oct 24, 2013
    从远程获取feed需要是时间的.
    feedparser单纯解析很快的.
    mongodb
        3
    mongodb  
       Oct 24, 2013
    我从php调用的,觉得速度还行。大部分时候取决于网络速度...尤其是内容提供的输出速度,它们服务器的响应速度.
    有这个速度是正常的。
    反正定时抓取,抓到了就存着,慢慢看就是。
    tonghuashuai
        4
    tonghuashuai  
    OP
       Oct 24, 2013
    @est 在opml导入的时候导入完成后马上就出文章了,这个不是马上去解析的吗?
    est
        5
    est  
       Oct 24, 2013
    @tonghuashuai 你导入一个别人绝对不会,从来没导入过的试试?

    -_- 你导入的RSS早被别人导过几万次不止啦。
    tonghuashuai
        6
    tonghuashuai  
    OP
       Oct 24, 2013
    @est
    @cute
    @mongodb
    明白了,多谢各位
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2317 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 09:55 · PVG 17:55 · LAX 02:55 · JFK 05:55
    ♥ Do have faith in what you're doing.