Soundcloud API Wrapped for Python, simple and with only 1 file
This is a Wrapped API that it is used from soundcloud web browser, its is subjected to changes and NOT OFFICIAL
- For installation see use requirements.txt for installation packages
- Get the O-Auth from soundcloud headers
- Get the Client id from soundcloud URL's
- Go to soundcloud and login in
- Open the "Inspect" tool (F12 on most browsers)
- Refresh the page
- Go to the page "Network" on the inspect terminal
- Search on the column "File" for the "client_id" and "Request headers" for "Authorization"
client_id
: string of 32 bytes alphanumeric
authorization
: string that begins with O-Auth and a string (the o-auth token is "O-Auth . . .")
Example code snippet (O-Auth and client_id are NOT real, use yours):
from soundcloudpy import Soundcloud
account = Soundcloud("O-Auth 3-26432-21446-asdif2309fj", "jHvc9wa0Ejf092wj3f3920w3F920as02")
print(account.get_account_details())
- Own account details
- User public details
- Own followers
- Last tracks reproduced info
- User profiles from tracks likes
- Track details
- Tracks liked
- Like a track
- Unlike a track
- Repost a track
- Unrepost a track
- Own playlists
- Playlists details
- Create a playlist
- Delete a playlist
- Recommended tracks of a track
- Strem URL's of a track (you can use it to reproduce the audio in VLC for example)
- Comments of a track
- Get mixed selection of playlists
- Get related artists
- Get unread conversations
I take no responsability for the issues you may have with your soundcloud account or for breaching the Terms of Use of soundcloud