0

Python has a library docx which is used to edit word documents. I read in the document using:

f = open('foobar.docx')
document = Document(f)
f.close()

From this page on git https://goo.gl/J9rncf, I realize the object is an instance of the Document class, which has a parent class ElementProxy. However, I'm unable to find a method which will output the text contained within the document object.

ilyas patanam
  • 4,736
  • 1
  • 27
  • 32

0 Answers0