Python comtypes read Outlook file -


i'm using comptypes python 3.6 , trying read office documents need extract text these files.

i understand word , ppt how open files using comtype

word = comtypes.client.createobject('word.application') doc = word.documents.open(filename)  ppt = comtypes.client.createobject('powerpoint.application') prs = ppt.presentations.open(filename) 

how outlook files (.msg)? tried following code doesn't work

ol = comtypes.client.createobject('outlook.application') msg = ol.mailitem.open(filename) 

i've resorted in using approach done in thread instead of testing out on question.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -