The Objects Embeded in files with extensions .xlsx, .ppt,.doc etc can be extracted using this library.
list of file extensions supported
- .xlsx
- .xlsm
- .xltx
- .xltm
- .docx
- .dotx
- .docm
- .dotm
- .pptx
- .pptm
- .potx
- .potm
Sample code to extract embeded files.
from AttachmentsExtractor import extractor
abs_path_to_file='Please provide absolute path here ' path_to_destination_directory = 'Please provide path of the directory where the extracted attachments should be stored'
extractor.extract(abs_path_to_file,path_to_destination_directory) # returns true if one or more attachments are found else returns false.