I am given a task to fetch all the contacts from (Microsoft)Outlook using Python. I tried this :
import win32com.client object = win32com.client.Dispatch(\"O
import win32com.client import pywintypes o = win32com.client.Dispatch("Outlook.Application") ns = o.GetNamespace("MAPI") profile = ns.Folders.Item("Profile Name") contacts = profile.Folders.Item("Contacts")