在网页上听了想听的歌想要下载到本地
将链接打印到文件
echo http://f3.htqyy.com/play9/{33,23,231,26,21,20,34,22,462,29,24,28,719,1616,494,27,527,493,1299,995}/mp3/6 > urls.txt
文件名手动处理
清晨 http://f3.htqyy.com/play9/33/mp3/6
寂静之声 http://f3.htqyy.com/play9/23/mp3/6
极度放松睡眠轻音乐 http://f3.htqyy.com/play9/231/mp3/6
你的微笑 http://f3.htqyy.com/play9/26/mp3/6
童年(空灵悠远) http://f3.htqyy.com/play9/21/mp3/6
雪之梦 http://f3.htqyy.com/play9/20/mp3/6
月光 http://f3.htqyy.com/play9/34/mp3/6
初雪 http://f3.htqyy.com/play9/22/mp3/6
时间之河 http://f3.htqyy.com/play9/462/mp3/6
追梦人 http://f3.htqyy.com/play9/29/mp3/6
安妮的仙境 http://f3.htqyy.com/play9/24/mp3/6
春野 http://f3.htqyy.com/play9/28/mp3/6
真爱 http://f3.htqyy.com/play9/719/mp3/6
雪的梦幻 http://f3.htqyy.com/play9/1616/mp3/6
月光 http://f3.htqyy.com/play9/494/mp3/6
无尽地平线 http://f3.htqyy.com/play9/27/mp3/6
古诗 http://f3.htqyy.com/play9/527/mp3/6
森林中的一夜 http://f3.htqyy.com/play9/493/mp3/6
秋天的落叶 http://f3.htqyy.com/play9/1299/mp3/6
寂静之音 http://f3.htqyy.com/play9/995/mp3/6
根据文件下载音乐
#!/bin/bash
while read p1 p2
do
wget -P /home/Music/bandari -U "Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0" -O ${p1} -c ${p2}
done < urls.txt