I can't seem to find a source that does exactly what I want.
I have a website where there are download links, such that when I click one it downloads a pdf file. Also this website is password protected.
How in python 2.7 (not 3, because I use 2.7 for other stuff) can I automatically download this file? All solutions I have seen either don't work or only work for a direct link to the file not a download link.
An alternative is javascript but then I would need to be able to rename the file or at least take a note of what the name is.
Please help