Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save documentprocessing/c348b56ec69c3692d23d813719523db1 to your computer and use it in GitHub Desktop.
Save documentprocessing/c348b56ec69c3692d23d813719523db1 to your computer and use it in GitHub Desktop.
Read metadata information of file in Python
from tika import parser
file_path = "example.pdf"
# Parse the file
parsed = parser.from_file('media_file.mp4')
# Extract metadata
print(parsed["metadata"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment