Re:Why curl defaults to stdout
by dec0dedab0de on Monday November 17, 2014 @08:09AM
(#8617978)
On my laptop, to view something while offline. On a server, to install something that is not in a package manager.
[ Parent
| on HN ]
On that note, sites that don't easily offer copyable links for download annoys me to no end.
Most of the time downloading anything, I need it on another machine, and normally the easiest way is copy/pasting an URL from my local web browser to a remote terminal, and fetch it using wget. In which case an auto redirect to a mirror selector that again auto downloads the item, all handled by javascript, is pretty frustrating.
There's a fix for that!
Firefox has: https://addons.mozilla.org/en-US/firefox/addon/cliget/
and it's sorta built-in on chrome: https://coderwall.com/p/-fdgoq/chrome-developer-tools-adds-c...
I noticed this with mega.co.nz and I hate it, they do all the downloading with javascript then start an actual browser download (which is just copying from localstorage to your download directory) which finishes in an instant but I have to remain on the page now.
I don't think it would be possible to use curl for mega because it has to locally decrypt the stream first. I do remember using a (now deprecated) python library that wrapped the mega api [0] a while ago, so that might interest you if you want to do everything from the command line.