Python olefile提取正文的文本

时间:2014-12-04 22:18:29

标签: python msg

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

import sys,olefile

x=olefile.OleFileIO('dkd.msg')

print x.read()

1 个答案:

答案 0 :(得分:1)

尝试

y = x.openstream('WordDocument'); print y.read()
相关问题