-
-
Save ypetya/204794 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
gem 'soundcloud-ruby-api-wrapper' | |
require 'soundcloud' | |
sc_client = Soundcloud.register | |
puts 'Enter search, like : fine-cut-bodies or just hit enter! :)' | |
search = gets.strip | |
search = 'fine-cut-bodies' if search.empty? | |
user = sc_client.User.find(search) | |
puts "Track count: #{user.tracks.length}" | |
user.tracks.each do |track| | |
p track.title | |
system "aoss mplayer -msglevel all=-1 -really-quiet #{track.stream_url}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment