下载海豚传媒mp3脚本

#! /bin/bash
wget    http://media.dolphinmedia.cn/  
cat index.html | grep 'http://media.dolphinmedia.cn/album/'  | grep 'entry-title' | cut -d'"' -f4  > url_list.txt

total=`cat url_list.txt | wc -l`;
i=1;
for x in `cat url_list.txt`;
do
   echo "total task $total,current task is $i";
   let i++;
   echo $x;
   curl $x | grep mp3 | cut -d '"'  -f14 >> mp3_url_list.txt;
done

total=`cat mp3_url_list.txt | wc -l`;
i=1;
for x in `cat mp3_url_list.txt`;
do
   echo "total task $total,current task is $i";
   let i++;
   wget `echo $x | cut -d "?" -f1`   -P mp3/;
done 
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容