Reputation: 97
Some time ago I wrote a little tool for a friend of mine. I retrieved all stream-links (like this) from a soundlist and downloaded all those with a small python script.
Since begin of March, soundcloud must have changed something, and now my cronjob recieves 401 Unauthorized
errors. I've read through the soundcloud API, but that whole Access Token
does not really fit my needs.
Has anyone of you an idea of easily dealing with this problem? Thanks.
Upvotes: 3
Views: 1793
Reputation: 1175
Read the documentation here. You have to add your client_id parameter to the stream url and then you will be redirected to the stream link (mp3).
Upvotes: 1
Reputation: 5782
As Makoto said, 401 seems like you have lost priviledges to access through your OAuth token so I would double check to make sure your app is still available and that your tokens are correct. You can check on the Your Apps Page.
Also, I noticed that your url seemed a bit different than what the SC api shows. Once you resolve to get a proper track id, the convention for a stream url is:
http://api.soundcloud.com/tracks/{id}/stream
This can be found in their track documentation.
Upvotes: 5