How can I access SoundCloud-Stream URLs in Python?
api, python, soundcloud, token, unauthorized
Solution
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.
Problem
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.