开发者

How do I retrieve Hotmail contacts with python

开发者 https://www.devze.com 2022-12-18 07:45 出处:网络
How can I retrieve contacts from hotmail with python? Is there an开发者_开发百科y example?Hotmail: Windows Live Contacts API

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

精彩评论

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