tags:

views:

461

answers:

3

How can I retrieve contacts from hotmail with python ?

Is there any example ?

Thanks ^_^

+1  A: 

Hotmail: Windows Live Contacts API

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

Yada
A: 

use octazen, but you have to pay for it

Since octazen doesn't work anymore for hotmail. Are there any proper Python alternatives?
WoLpH
A: 

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)
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).

Chris Lawlor