11 lines
243 B
Python
11 lines
243 B
Python
|
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
|