Created
December 31, 2024 17:55
-
-
Save documentprocessing/c348b56ec69c3692d23d813719523db1 to your computer and use it in GitHub Desktop.
Read metadata information of file in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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