0

I have a word document, food worksheet, and I am trying to find the author(s) of the word document but I don't know how to find that out. Is there a way to find out the author of the word document using python?

Thanks in advance

Hunter
  • 321
  • 2
  • 11
  • Duplicate of https://stackoverflow.com/questions/7021141/how-to-retrieve-the-author-of-an-office-file-in-python – notnotparas Mar 02 '21 at 12:28

1 Answers1

1

Use Python-Docx

import docx
doc = docx.Document("path/to/word/file.docx")
prop = doc.core_properties
print(prop.author)
TheEagle
  • 5,808
  • 3
  • 11
  • 39
Alex Metsai
  • 1,837
  • 5
  • 12
  • 24