Ya antes había creado un script para bajar música en formato mp3 desde YouTube, ahora se me ocurrió hacerlo también desde goear y ademas que mientras los archivos se estén descargando yo pueda hacer otra cosa y cuando termine la descarga que me avise mediante una notificación.
Necesitaras bajar 2 imagenes propias de YouTube y Goear, y el script que he creado.
Recomendación: crear un directorio y bajar en ellas los archivos para usar YOUEAR.
mkdir youear
Ahora entramos a nuestro directorio.
cd youear
Luego descargamos los archivos.
wget https://sites.google.com/site/falfiles/Home/archivos/musica_goear.png
wget https://sites.google.com/site/falfiles/Home/archivos/youtube-32.png
wget https://sites.google.com/site/falfiles/Home/archivos/youear.sh
Damos permisos de ejecución.
sudo chmod +x youear.sh
El programa te va a pedir códigos, estos los vas a obtener de la siguiente manera.
Para YouTube, vNm52f60gD0 vendría a ser el código.
http://www.youtube.com/watch?v=vNm52f60gD0
Para Goear, 50d2ec0 vendría a ser el código.
http://www.goear.com/listen/50d2ec0/mix-dj-tavo-cual-es-tu-caucau-dj-tavo
Y este es el código, te lo dejo para que lo uses o modifiques y lo compartas con los demás.
#!/bin/bash
echo '*********************'
echo '*******YOUEAR********'
echo '*******by fal********'
echo '*********************'
while :
do
echo " ESCOJA UNA OPCION "
echo "1. YOUTUBE.COM"
echo "2. GOEAR.COM"
echo "3. Salir"
echo -n "Seleccione una opcion [1 - 3]"
read opcion
case $opcion in
1)
CODIGO=''
echo -n 'ingrese codigo: '
read CODIGO
NOMBRE=''
echo -n 'ingrese nombre para el mp3: '
read NOMBRE
RUTA=`pwd`
youtube-dl http://www.youtube.com/watch?v=${CODIGO}
ffmpeg -i ${CODIGO}.flv -f mp3 "${NOMBRE}".mp3
rm ${CODIGO}.flv
notify-send "youtube.com" "${NOMBRE}" -i "${RUTA}/youtube-32.png"
;;
2)
CODIGO=''
echo -n 'ingrese codigo: '
read CODIGO
RUTA=`pwd`
fileid=`echo $CODIGO`
xmlurl="http://www.goear.com/tracker758.php?f="$fileid
infoline=`wget -qO- $xmlurl | grep ".mp3"`
mp3url=`echo $infoline | cut -d '"' -f6`
artist=`echo $infoline | cut -d '"' -f10`
title=`echo $infoline | cut -d '"' -f12`
wget $mp3url -O "$artist-$title.mp3"
notify-send "goear.com" "$artist-$title" -i "${RUTA}/musica_goear.png"
;;
3) echo "bye";
exit 1;;
*) echo "$opc es una opcion invalida. Es tan dificil?";
echo "Presiona una tecla para continuar...";
read foo;;
esac
done
andrea
29/05/2011
hola
botnet
29/05/2011
hola q tal…
anonimo
26/07/2011
Si tienes un móvil Android puedes descargarte desde el market la aplicación downEar con la que te descargas con sólo un click toda la música que quieras de Goear, además puedes escucharla en streaming como si Spotify fuera con tu lista de reproducción y todo, vamos, un lujazo! bit.ly/downEar
botnet
26/07/2011
Muy bu3n d470, p0r 31 m0m3n70 n0 us0 4ndr0id p3r0 cu4nd0 73n94 un0 3n mis m4n0s n0 dud4r3 3n us4r un0 d3 3s0s, y 4d3m4s c0m0 7u y y0 s4b3m0s, 14s c0si114s qu3 s3 pu3d3n h4c3r 😉 muy pr0n70 3s74r3 subi3nd0 scrip7 p4r4 4ndr0id. n0s v3m0s!
solo me importas tu
25/03/2012
los kiero
Jarvis
15/09/2012
What’s up mates, its wonderful article on the topic of educationand entirely explained, keep it up all the time.
kolagen naturalny
13/12/2012
Oh my goodness! Impressive article dude! Thanks, However I am encountering troubles with your RSS.
I don’t know why I cannot subscribe to it. Is there anybody getting the same RSS issues? Anybody who knows the answer will you kindly respond? Thanks!!
botnet
07/01/2013
try again man
Kasha
26/12/2012
A person necessarily assist to make significantly
articles I’d state. This is the first time I frequented your web page and so far? I surprised with the research you made to create this actual publish extraordinary. Fantastic process!
click the following internet site
and click the following article
and click for source
and also click the following article