Untitled

mail@pastecode.io avatar
unknown
plain_text
4 years ago
273 B
2
Indexable
Never
import docx

def getText(filename):
    doc = docx.Document(filename)
    fullText = []
    for para in doc.paragraphs:
        fullText.append(para.text)
    return '\n'.join(fullText)

if __name__=="__main__":
    print(getText('/home/sergej/2_5325898814433790049.docx'))