collecting music from the Free Music Archive
Use lynx -dump -listonly -nonumbers foo.bar | grep -e music/download | wget --content-disposition -i -
, where foo.bar is the URL of the page containing the music to be downloaded.
Attention
The Free Music Archive is closing, so these instructions are no longer useful. Refer to Archiveteam's page for further information.
Warning
Be polite when using this script on multiple pages in a short period of time.
explanation
lynx -dump -listonly -nonumbers foo.bar
gets a list of URLs from foo.bar.grep -e music/download
returns URLs containing music/download.wget --content-disposition -i -
retrieves music files.
licensing
No rights reserved: CC0 1.0.
prior work
- The
--content-disposition
and-i
options for Wget were introduced to me by an answer on Stack Overflow by dim-0 and an answer on Super User by EightBitTony. - The
-dump
and-listonly
options for Lynx were introduced to me by an answer on Stack Exchange by michas.