I'm trying to download a public link (no login required). See the below:
Essentially in the browser you can select download as zip from the menu, but I don't have enough storage space on my laptop, so I'd like to do it on AWS.
The links are in the format:
$ megadownloader https://mega.co.nz/#F!XXXXXXXX!XXXXXXXXXXXXXXXXXX-XXX
You are not using a simple file server, but a web application that offers to download files as ZIP. If it is zipping "on fly" server side, the static link you want may not exist at all.
When facing such a problem, the only foolproof way is (it is a python based way as you question is tagged as python) :
mechanize, or simply the Standard Python Library modules
urllib2(python 2.x) or
urlib.request(python 3.x). Be sure to add a
CookieProcessorto the list of standard handlers to correctly process sessions.
Ok it is not a very precise answer, but it should give you enough hints and the path to go. Feel then free to ask more detailed questions here if you get stuck anywhere in the procedure : just give the python code you have written and explain what you do not know how to do. You should get more precise answers.