Download Songs


Download Full songs from a site one by one according to the film name

#!/bin/bash

URL="http://sensongs.com"

lynx -dump $URL | grep -o "http:.*" | grep -E "HindiSongs.htm|MalayalamSongs.htm|TamilSongs.htm" |sort -u > link

for i in `cat link`
do
IURL="$i"
NAME=`echo ${i:20} | cut -d. -f1`

if [ -d ~/Music ]; then
cd ~/Music
else
mkdir -p ~/Music
cd ~/Music
fi

if [ -d ~/Music/sensongs.com ]; then
cd ~/Music/sensongs.com
else
mkdir  ~/Music/sensongs.com
cd ~/Music/sensongs.com
fi

if [ -d "$NAME" ]; then
cd $NAME
else
mkdir $NAME
cd $NAME
fi

lynx -dump $IURL | grep -o "http:.*" | grep -vE "TamilSongs|NFls|Home|Telugu|Hindi|Pakistani|Malayalam|Kannada|OtherSongs|ContactUs" > songs.txt

for j in `cat songs.txt`
do
MP3=`echo ${j:20} | cut -d. -f1`

if [ -d "$MP3" ]; then
cd $MP3
else
mkdir $MP3
cd $MP3
fi

lynx -dump $j|grep -o "http:.*"|grep ".mp3$|.wma$" |xargs wget -c
cd ..
 done
   done



Terima kasih telah membaca artikel tentang Download Songs di blog Tutorial Opensource and Linux jika anda ingin menyebar luaskan artikel ini di mohon untuk mencantumkan link sebagai Sumbernya, dan bila artikel ini bermanfaat silakan bookmark halaman ini di web browser anda, dengan cara menekan Ctrl + D pada tombol keyboard anda.

Artikel terbaru :

  • How To Install Cinnamon In Ubuntu 14.04
  • How To Install Mate Desktop In Ubuntu 14.04
  • Creating the first Windows Server 2003 Domain Controller in a domain
  • How To Install Ubuntu 13.10 Server
  • How to Install Nuvola Player in Ubuntu
  • How to establish Emerald in Ubuntu 13.10 & Linux Mint 16
  • How to Restoring iptables Automatically On Boot on Debian and Ubuntu
  • How to Compile FFMPEG with H.264 and LAME in Ubuntu And Debian
  • How to Install Linux on a Playstation 2
  • apt-fast: Improve apt-get Download Speed
  • Artikel terkait :