PCQRSCANER/venv/Lib/site-packages/textract/parsers/doc_parser.py

11 lines
243 B
Python
Raw Normal View History

2019-12-22 21:51:47 +01:00
from .utils import ShellParser
class Parser(ShellParser):
"""Extract text from doc files using antiword.
"""
def extract(self, filename, **kwargs):
stdout, stderr = self.run(['antiword', filename])
return stdout