Source code for textract.parsers.doc_parser

from .utils import ShellParser


[docs]class Parser(ShellParser): """Extract text from doc files using antiword. """
[docs] def extract(self, filename, **kwargs): stdout, stderr = self.run('antiword "%(filename)s"' % locals()) return stdout