Download only excel file from outlook

Hello!

I wanna write a python code which opens the email from a specific user in Outlook and download only the excel file from attachments list.

I’ve been searching some ways to do that but what I found was code to download all the attachments.
How can I check if the specific file is excel and download it?

You might ask the author of whatever 3rd party package you are using, after re-reading its doc. If the package has enough users, there might be an answer on stackoverflow.com.