Domingo, 05 Septiembre 2010

MegaUploadWow una de las cosas que siempre quise hacer es descargar vía megaupload premium pero por terminal, onda para automatizar el tema de las descargas, y ustedes se preguntaran porque?, bueno basicamente es para dejar descargando mis peliculas por megaupload pero de manera remota y otros server y asi no ocupar el ancho de banda de mi casa que descaragrado.

Y asi es como encontré plowshare un pequeño proyecto que permite precisamente lo que ando buscando, descargar de megaupload siendo premium (o no, tambien sirve para usuarios sin registro) via terminal, asi que lo probe funcione y ahora lo comparto por si alguien le intersesa.

Lo primero es descargar instalar algunas dependencias para que todo funcione correctamente

 $ sudo apt-get install curl recode imagemagick tesseract-ocr-eng spidermonkey-bin aview

luego descargamos plowshare, lo descomprimimos y lo instalamos de la siguente manera:

$ wget http://plowshare.googlecode.com/files/plowshare-VERSION.tgz
$ tar xvzf plowshare
-VERSION.tgz
$ cd plowshare
-VERSION
$ sudo bash setup
.sh install

ahora solo queda probarlo

 

Usage examples

Download

  • Download a file from rapidshare:
$ plowdown http://www.rapidshare.com/files/86545320/Tux-Trainer_25-01-2008.rar
  • Download a list of files (one link per line):
$ plowdown file_with_links.txt
  • Download a file from megaupload using a free membership account:
$ plowdown -a myuser:mypassword http://www.megaupload.com/?d=132348234
  • Download a password-protected file from megaupload:
$ plowdown -p somepassword http://www.megaupload.com/?d=ieo1g52v
  • Get only the file URL without actually downloading it. Very handy if you want to use another web downloader:
$ plowdown --link-only http://www.2shared.com/file/4446939/c9fd70d6/Test.html | xargs -rt wget
  • A more complex example for advanced users: you have a found a webpage containing a bunch of megaupload files and want to download, let's say, the first ten links. You could then write:
$ curl http://some-website.com/page.html | \
    grep
-o "http://www.megaupload.com/[^\"< ]*" | uniq | head -n10 | plowdown -

Upload

  • Upload a file to megaupload with a free membership account:
$ plowup -a myuser:mypassword -d "My description" /path/myfile.txt megaupload
  • Upload a file to megaupload with a Premium account and multifetch upload:
$ plowup -a myuser:mypassword -d "My description" --multifetch http://www.somewherefarbeyond.com/somefile megaupload
  • Upload a file to rapidshare anonymously changing uploaded file name:
$ plowup /path/myfile.txt rapidshare:anothername.txt

 

 


blog comments powered by Disqus