[英]Parsing Outlook Emails using Python
我正在嘗試打開來自 Outlook 的電子郵件,以使用 Python 從電子郵件正文中提取某些文本。 我嘗試安裝 win32com.client、pywin32、imapclient 和 msg-extractor,但是當我嘗試下載時,它說:
ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32
我已經用 python 3 和 python 2.7 試過這個。 經過一番研究,似乎 python 自 2020 年 1 月起不再支持 MAPI,我似乎找不到任何方法來打開 Outlook email 而不使用某種形式的 MAPI。
我對 python 比較陌生,所以您能給我的任何幫助將不勝感激!
這是在 python 中使用 exchangelib 的示例
雖然它讀取共享郵箱並且代碼的要求/目標與您的有點不同,但它應該適用於普通的個人郵箱。
希望能幫助到你!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.