How do I retrieve Hotmail contacts with python

How can I retrieve contacts from hotmail with python?

Is there any example?


Asked by: Elise576 | Posted: 30-11-2021






Answer 1

Hotmail: Windows Live Contacts API

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

Answered by: Oliver290 | Posted: 01-01-2022



Answer 2

use octazen, but you have to pay for it

Answered by: Daisy725 | Posted: 01-01-2022



Answer 3

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

Answered by: Maddie746 | Posted: 01-01-2022



Similar questions

django - Retrieve all contacts from gmail using python

I am using django social auth in order to retrieve contacts from gmail. I do not have any problem getting the authorization. I do a request and then I use lxml to retrieve the email addresses. The problem is that it does not display every contacts. For example, I can retrieve only 30 contacts while I have more than 300 contacts with my gmail account. Here is my view : def get_email_google(r...


python - How to retrieve Google Contacts in Django using oauth2.0?

My app is registered in Google and I have enabled the contacts API. In the first view I am getting the access token and I am redirecting the user to the Google confirmation page where he will be prompted to give access to his contacts: SCOPE = 'https://www.google.com/m8/feeds/' CLIENT_ID = 'xxxxxxxx' CLIENT_SECRET = 'xxxxxxxxx' APPLICATION= 'example.com' USER_AGENT = 'dummy-sample' APPLICATION_REDIR...


python - how can I retrieve contacts using kivy from android

I have tried using pyjnius to retrieve contact ,may be i have made some mistakes. can anyone help me to solve it def build(self): try: PythonActivity=autoclass("org.renpy.android.PythonActivity") ContactsContract=autoclass("android.provider.ContactsContract") cr = PythonActivity.mActivity.getContentResolver() null = None # this will help to convert java examples into pyt...


html - How can I retrieve the page title of a webpage using Python?

How can I retrieve the page title of a webpage (title html tag) using Python?


python - How to retrieve an element from a set without removing it?

Suppose the following: >>> s = set([1, 2, 3]) How do I get a value (any value) out of s without doing s.pop()? I want to leave the item in the set until I am sure I can remove it - something I can only be sure of after an asynchronous call to another host. Quick and dirty: >>> elem = s.pop() >>> s.add(elem)


sql server - Python: Retrieve Image from MSSQL

I'm working on a Python project that retrieves an image from MSSQL. My code is able to retrieve the images successfully but with a fixed size of 63KB. if the image is greater than that size, it just brings the first 63KB from the image! The following is my code: #!/usr/bin/python import _mssql mssql=_mssql.connect('<ServerIP>','<UserID>','<Password>') mssql.select_db('<Database...


python - Best way to retrieve variable values from a text file?

Referring on this question, I have a similar -but not the same- problem.. On my way, I'll have some text file, structured like: var_a: 'home' var_b: 'car' var_c: 15.5 And I need that python read the file and then create a variable named var_a with value 'home', and so on. Example...


python - How to retrieve the selected text from the active window

I am trying to create a simple open source utility for windows using Python that can perform user-defined actions on the selected text of the currently active window. The utility should be activated using a pre-defined keyboard shortcut. Usage is partially outlined in the following example: The user selects some text using the mouse or the keyboard (in any application window)


python - How can I retrieve last x elements in Django

I am trying to retrieve the latest 5 posts (by post time) In the views.py, if I try blog_post_list = blogPosts.objects.all()[:5] It retreives the first 5 elements of the blogPosts objects, how can I reverse this to retreive the latest ones? Cheers


python - Retrieve module object from stack frame

Given a frame object, I need to get the corresponding module object. In other words, implement callers_module so this works: import sys from some_other_module import callers_module assert sys.modules[__name__] is callers_module() (That would be equivalent because I can generate a stack trace in the function for this test case. The imports are there simply to make that example complete an...


linux - How to retrieve the process start time (or uptime) in python

How to retrieve the process start time (or uptime) in python in Linux? I only know, I can call "ps -p my_process_id -f" and then parse the output. But it is not cool.


python - Retrieve the two highest item from a list containing 100,000 integers

How can retrieve the two highest item from a list containing 100,000 integers without having to sort the entire list first?


c++ - How do I retrieve program output in Python?

I'm not a Perl user, but from this question deduced that it's exceedingly easy to retrieve the standard output of a program executed through a Perl script using something akin to: $version = `java -version`; How would I go about getting the same end result in Python? Does t...






Still can't find your answer? Check out these communities...



PySlackers | Full Stack Python | NHS Python | Pythonist Cafe | Hacker Earth | Discord Python



top