A Hype Machine song scraper written in Ruby.
Run bundle install
in the get-hyped
directory and you should be ready to rock!
ruby get-hyped.rb [OPTION]... [PLAYLIST]
--dupes Download tracks even if they've already been downloaded
-a, --album [ALBUM] Specify the album MP3 tag for tracks being downloaded
-d, --dir [DIRECTORY] Specify the target directory
-l, --list [FILE] Use a list of playlists
PLAYLIST
can be any playlist or username from hypem.com. Examples include:
- latest
- latest/noremix
- popular
- popular/lastweek
- chillwave
- indie
- brianok
- brianok/3
Note how the last example included a "/3" to indicate page 3 of the playlist (higher numbered pages contain older songs). For more playlists, you can take a look at the top navigation bar on hypem.com. With --list, multiple playlists can be provided via a text file. The text file should have one playlist per line.
Once invoked, the script will attempt to download all of the MP3 files from the specified playlist into the specified target directory. A list of downloaded tracks will be maintained in tracks.txt
; a track that has already been downloaded will not be downloaded again unless the --dupes
argument is supplied.
- Growl/email notifications
- Logging
- Adjustable timeout values
- Take page number as an argument?
- Optional sleep interval between downloads?