V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 ·
    tonghuashuai · 2013-10-24 13:14:50 +08:00 · 2524 次点击
    这是一个创建于 3830 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

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

    -_- 你导入的RSS早被别人导过几万次不止啦。
    tonghuashuai
        6
    tonghuashuai  
    OP
       2013-10-24 17:08:30 +08:00
    @est
    @cute
    @mongodb
    明白了,多谢各位
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3812 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 10:18 · PVG 18:18 · LAX 03:18 · JFK 06:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.