下载全套的马达加斯加企鹅动画

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#/bin/sh
for((episode=1;episode<=102;episode++));do
	kid=$(curl --connect-timeout 5 -s http://www.kan300.com/dm/mdjsjdqegyb/$episode.shtml | grep -oP "(?<=play_hua_id = ').*(?=';)");
	cntvid=$(curl --connect-timeout 5 -s -d "server=cntv&&id=$kid" http://www.kan300.com/play_url.php);
	list=$(curl --connect-timeout 5 -s "http://www.flvcd.com/parse.php?format=&kw=http://player.cntv.cn/flashplayer/players/htmls/smallwindow.html?pid=$cntvid" | grep -oP "(?<=href=\")http://vod.cntv.lxdns.com[^\.]*\.mp4");
	echo "找到第$episode集地址,开始下载。。。";
	i=1;
	for item in $list;do
		wget $item -O majsj_$episode-$i.mp4;
		clear;
		i=$((i+1));
		done;
done
#感谢kan300提供地址,硕鼠提供嗅探地址,以及万恶的cntv提供视频资源。