#/bin/bash
tmp=/tmp/salida
baseurl="www.subdivx.com"
wget "http://www.subdivx.com/feed.php?buscar=$1" -O $tmp ;
enlaces=$(cat $tmp | grep \ | tr '\n' ' ' | sed 's///g' | sed 's/<\/link>//g' | sed 's/http\:\/\/www.subdivx.com//g')
echo -e "$enlaces"
for i in $enlaces;
do
url="$baseurl$i"
echo -e "$url \n"
wget "$url" -O $tmp ;
download=$(cat $tmp | grep "Bajar subt" | awk -F"link1" '{print $2}'|cut -d'>' -f1 | sed 's/" href\=//g' )
echo -e "-------------->$download"
comando="wget -O /tmp/$i-out.rar --referer $baseurl $download "
eval $comando;
unrar x /tmp/$i-out.rar /media/disco/descargas/
exit
done
No hay comentarios:
Publicar un comentario