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
magicshui
V2EX  ›  Python

最好用的Gmail库

  •  
  •   magicshui · 2012-09-26 21:17:06 +08:00 · 3355 次点击
    这是一个创建于 4251 天前的主题,其中的信息可能已经有所发展或是发生改变。
    有没有Gmail的python lib,能够根据label或者folder来获取邮件?
    求一个最好用的库
    4 条回复    1970-01-01 08:00:00 +08:00
    jamiesun
        1
    jamiesun  
       2012-09-26 21:20:08 +08:00   ❤️ 1
    imap
    magicshui
        2
    magicshui  
    OP
       2012-09-26 21:22:45 +08:00
    @jamiesun imap是不是还要自己再去封装一下根据label获取邮件的功能?
    jamiesun
        3
    jamiesun  
       2012-09-26 21:39:50 +08:00   ❤️ 1
    imap只是协议,你需要自己去实现封装

    至于封装好的模块应该有的,你去搜索下啊
    参考
    http://bitsofpy.blogspot.com/2010/05/python-and-gmail-with-imap.html
    http://yuji.wordpress.com/2011/06/22/python-imaplib-imap-example-with-gmail/

    另外gmail也提供了http的api的
    http://libgmail.sourceforge.net/
    magicshui
        4
    magicshui  
    OP
       2012-09-26 21:58:50 +08:00
    @jamiesun 谢谢,libgmail已经试用,满足需求~
    imap要瞅瞅
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   897 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 21:29 · PVG 05:29 · LAX 14:29 · JFK 17:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.