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

12 lines
223 B
Python
Raw Normal View History

2019-12-22 21:51:47 +01:00
import docx2txt
from .utils import BaseParser
class Parser(BaseParser):
"""Extract text from docx file using python-docx.
"""
def extract(self, filename, **kwargs):
return docx2txt.process(filename)