how to open word file in python code example
Example 1: open word document python
from docx import Document
document = Document()
document.save('test.docx')
Example 2: read ms word with python
import textract
text = textract.process("path/to/file.extension")