A ruby library to generate RSS feed for your SoundCloud account.
- Generate an RSS feed featuring the "incoming tracks" of your account dashboard
(see the /me/activities API documentation).
- Permanent link to the track on SoundCloud.
- Track's title and creator's name.
- Track's artwork.
- Track's description.
- Embedded MP3 streaming URL when available.
-
Clone this repository.
git clone git://github.com/quentin/soundcloud-rss-ruby.git
-
optional but recommanded
Create avendors
directory.cd soundcloud-rss-ruby mkdir vendors
-
Get soundcloud-ruby and its dependencies.
recommanded
clone the git-hub repository to get the last version of the sources, in thevendors
directory you just created at step 2.git clone git://github.com/soundcloudlabs/soundcloud-ruby.git vendors/soundcloud-ruby
-
Install the soundcloud-ruby dependencies.
gem install httmultiparty hashie
It is a best practice to have the configuration stored in a file:
- Copy
.soundrssrc
to your home directory --cp .soundrssrc ~/
- Set your SoundCloud username and password in the file
- Protect the file --
chmod u+rw,go-rwx ~/.soundrssrc
Or you can also set environment variables, using the prefix SOUNDRSS_
:
- Set a username --
export SOUNDRSS_USERNAME=yourusername
- Set a password --
export SOUNDRSS_PASSORD=yourpassword
An other way to configure SoundcloudRSS is to pass options when you initialize
a SoundcloudRSS
object:
s = SoundcloudRSS.new({:username => 'yourusername', :password => 'yourpassword'})
- run
ruby -rubygems examples/servlet/servlet.rb
(add-Ipath/to/soundcloud-ruby/lib
if your soundcloud-ruby copy is not in thevendors
directory) - enjoy [http://localhost:8080/soundrss]
Simply add the public URL of your linuxbox feed and be ready to wait at least one hour between each update.