linux - how to download .mp3 files whole site?

3.3k views Asked by At

I want to download all mp3 files in the website (even in root folder and sublinks).

For example i want to download all .mp3 links from the "http://example.org/musics/" and all sub-links.

How i cand do this?

thank you

3

There are 3 answers

0
Abercrombieande On BEST ANSWER

I think you should be using wget.

wget -r -A "*.mp3" http://example.org/musics/
0
El Barrio 13 On

Using wget command:

wget -o /home/music http://example.org/musics/music.mp3 

Now, If you want to download all the “mp3” files from a website, you need to do some thing like this as following:

wget -r -l1 –no-parent -A.mp3 http://example.org/musics/
0
Janpan On

you can use wget:

wget -r --no-parent http://example.com/musics/

Assuming that the files are available for public download. Just read the man page.

Update:

Reading through the man page, you will see this section: http://www.gnu.org/software/wget/manual/wget.html#Types-of-Files

It explains how to limit the files that it accepts when downloading. So you could add an accept option:

wget -r --no-parent --accept mp3,MP3 http://example.com/musics/