2

How can I retrieve contacts from hotmail with python?

Is there any example?

skynet
  • 9,898
  • 5
  • 43
  • 52
xRobot
  • 25,579
  • 69
  • 184
  • 304

3 Answers3

1

Hotmail: Windows Live Contacts API

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

Widor
  • 13,003
  • 7
  • 42
  • 64
Yada
  • 30,349
  • 24
  • 103
  • 144
0

use octazen, but you have to pay for it

Kapil D
  • 2,662
  • 6
  • 28
  • 30
  • Since octazen doesn't work anymore for hotmail. Are there any proper Python alternatives? – Wolph Aug 05 '10 at 12:07
-1

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

benvd
  • 5,776
  • 5
  • 39
  • 59
Chris Lawlor
  • 47,306
  • 11
  • 48
  • 68