I need to download a file to a given location on a non-local machine. This is the normal flow of the web browser for which I would do this:
You would have to examine the javascript on the website and understand how it works before you could override it to do something like that, but even then, browser security will always pop a dialog asking you to confirm the download. That leaves you with two options (as far as I can see):
I can't really help with the details on either, since I don't know python, but hopefully that helps...