I'm back - with a Mega.co.nz download client
I got tired of waiting for a Mega download-capable client for iOS. So I made one.
The mobile website lets you share links and I found an ad-supported client that lets you upload content - but not download it!
So here's MegaDL.py to fix that:
Here's how it works:
<b>0.)</b> Create a Mega account, if you don't have one, and edit the script. There's two lines at the top:
<pre>mega_acct = 'email@example.com'
mega_pass = 'passwordhere'</pre>Put your username and password into there instead.
<b>1.)</b> Copy a public download URL from Mega to your clipboard:
<b>2.)</b> With the URL in your clipboard, run MegaDL:
The first time you run it, you may see some errors - because the script depends on an external python module (<a href="https://github.com/richardasaurus/mega.py">richardasaurus's mega.py</a>) and a newer version of requests than Pythonista has (1.2.0). This script will automatically download both, if they're missing. <b>As a bonus, you can import them later in other scripts for yourself.</b>
<b>3.)</b> When the download is complete, it will offer to open the download into Mobile Safari. <b>You want this.</b>
<b>4.)</b> Mobile Safari instantly loads the file (or at least, it's so fast it feels instant since it's coming from the device itself) - which then unlocks 'Open in ...' capability for that filetype, allowing you to transfer the file out of Pythonista and into whatever you've got!
(<a href="http://imgur.com/a/IRhIs">album with images here</a>)
The script also deletes the file, if you like, from Pythonista after the download has occurred in Mobile Safari.
If you choose not to delete the file (or open it in Safari), it's left in a folder called 'mega_dl' in Pythonista. Unfortunately the file browser that Pythonista offers doesn't show anything other than '.py' files, so you likely won't be able to see or do anything with content downloaded from Mega this way. Deleting the 'mega_dl' folder in Pythonista, however, will also delete any downloads you didn't remove (don't worry, MegaDL will re-create the folder if it's missing).
If you don't transfer the content out via Mobile Safari, you can also get to it later with a program like iFunbox which lets you see the contents of Documents folders for iOS device apps that don't even necessarily show up in iTunes sync (from your Mac or Windows machine).
Hope you guys enjoy! ☺