Python olefile 提取正文的文本



我一直在尝试使用 python 模块 olefile 提取磁盘中 msg 文件的文本内容。但是得到AttributeError: OleFileIO instance has no attribute 'read'.尝试读取 olefile API,但无法获得任何线索。谢谢。

import sys,olefile
x=olefile.OleFileIO('dkd.msg')
print x.read()

尝试

y = x.openstream('WordDocument'); print y.read()

最新更新