Open CoelacanthsKill opened 8 years ago
Is there an example URL?
https://soundcloud.com/herbalpert/jump-street
You must have SoundcloudGo in order to listen to the entire song.
This track is not available in Taiwan
Which countries does it require?
It works in the USA, not sure about other countries.
SoundCloud now requires logging in via OAuth2, so that's a bit tricky to implement without registering an app and implementing a redirect flow. You can however just log in with a browser, read the OAuth-Token from the cookies and pass it to youtube-dl.
SoundCloud will then provide the full-length tracks instead of only the preview when fetching, the rest works seamlessly 🙂
The cookie is called oauth_token
and an example call would be
youtube-dl --add-header 'Authorization':'OAuth 2-123456-123456789-aaa...' https://soundcloud.com/artist/track
Cheers!
@VFUC 's solution confirmed as working on 5/4/19. I did need to update to get it to work.
Can confirm as well that @VFUC's above solution is working as of 2019-05-14 with youtube-dl version 2019.05.11.
Had to use
youtube-dl --add-header "Authorization:OAuth 2-..." https://soundcloud.com/artist/track
(note quotation marks) on Windows 10. Working fine otherwise on 2020.06.16.1
.
Still works in 2024 ❤️
The extractor should look for this cookie and set it in the auth header or else raise_login_required()
. We can check how yt-dlp handles this and implement or back-port as required.
Does this apply across the site, or is there some way (apart from detecting 401/403) to tell which pages need login?
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --version
and ensure your version is 2016.04.19. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Add support for logging into soundcloud, and having the ability to fetch full length Soundcloud Go tracks.