Search code examples
pythonfull-text-searchms-office

Is there a way to search for user defined strings in different outlook attachments using python?


Currently i am working on a project where i have to extract attachments and e-mails from outlook and check whether a user defined string present in them or not. I've completed the extraction part but still searching for a way to search for text/string within the attached documents. Is there a way to this by using python?


Solution

  • For Microsoft Office files you can:

    1. Automate Office applications.
    2. Use the open xml SDK if you deal with open XML documents only.
    3. Use third-party libraries for dealing with documents.

    It is up to you which way is to choose.