A curated list of useful CLI tools for cloud file hostings.
Download file via terminal given link to particular cloud service. Currently only gdrive
tool requires authentication.
Hosting | Tool | Usage |
---|---|---|
Mega | megatools | megadl https://mega.nz/... |
Baidu Cloud | pan-baidu-download | pan download http://pan.baidu.com/... |
Google Drive | gdrive | gdrive download ABC123... |
Amazon Cloud Drive | acd_cli | TODO |
Yandex.Disk | TODO | TODO |
Cloud Mail.Ru | TODO | TODO |
TODO: Upload file/directory to cloud hosting
Retrieve original link via terminal given particular URL shortener.
Service | Usage |
---|---|
goo.gl, sh.st | curl -sIo/dev/null -w '%{redirect_url}' http://... |
adf.ly, j.gs, q.gs | curl -s http://adf.ly/... | awk -F\' '/ysmm/{print $2}' | python -c 'import sys;from base64 import b64decode;from functools import reduce;print(b64decode("".join(reduce(lambda acc,el: (acc[0],el[1]+acc[1]) if el[0]&1 else (acc[0]+el[1],acc[1]), enumerate(sys.stdin.read()), ("", ""))))[2:].decode("utf-8"))' |
- Userscript for skipping ads on sh.st, adf.ly, j.gs and q.gs
- TODO: Universal cloud downloader shell script