开发者

How do I retrieve Hotmail contacts with python

How can I retrieve contacts from hotmail with python?

Is there an开发者_开发百科y example?


Hotmail: Windows Live Contacts API

If a python interface doesn't exist you may have to resort to screen scraping.


use octazen, but you have to pay for it


IIRC Hotmail has POP access, so just use the poplib library.

Usage is something like this (NOT tested):

hotmail = poplib.POP3_SSL('pop3.live.com', 995)
hotmail.user(USERNAME)
hotmail.pass_(PASSWORD)

message_count = len(hotmail.list()[1])

for i in range(message_count):
    for message in hotmail.retr(i+1)[1]
        print message

Some connectivity info here (might be old).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜