I want to click on the link from email and download the file in my laptop by using python script. Any one has any idea about this?
I could see most of the information's which i am seeing in the internet is download the file in linux itself.
The Instruction to do that:
Writing a code to do the following:

login to your email.
parse your inbox and locate the specific email.
parse the html source and locate the url for the download link.
download it by connecting directly to it.
How to download the file by clicking the link in email by using the python script