![m soundcloud download m soundcloud download](https://i1.sndcdn.com/avatars-000585445323-8spy7x-t500x500.jpg)
Now we need to deconstruct the stream url as well so that we can generate it ourselves.
![m soundcloud download m soundcloud download](https://fiverr-res.cloudinary.com/images/t_main1,q_auto,f_auto,q_auto,f_auto/gigs/116381726/original/921e015268d9751c935d3caf7c19feca4894e62f/design-the-perfect-soundcloud-banner.png)
To verify my observation I opened the stream url in a new tab and then tried accessing the http_mp3_128_url url myself, before the Soundcloud player.Īll of a sudden we are able to access the media file without the Forbidden error! And after the browser plays the media file for the first time, the urls expire and that is the reason we were getting a Forbidden error. That must mean that the urls are for one time use only and are programmatically generated on every access. However, I am not logged in so there might be something else going on.Īfter refreshing the page a couple of times I observed that http_mp3_128_url url changed after every refresh. Now most of the times what happens is that the server checks the headers and cookies of the browser to verify that an authorized person is accessing the endpoint. There is definitely something fishy going on because if I scroll down in the developer tools I can see that Soundcloud is successfully accessing that url without any Forbidden error. Whenever we try opening the http_mp3_128_url url in a new tab we are greeted with the 403 Forbidden error. Now the one we are interested in is the http_mp3_128_url because they are usually the most straightforward to download. That endpoint returns a couple of media links. So I clicked on the stream link and saw what response we were getting from Soundcloud on that endpoint:Īnd lo-and-behold.
![m soundcloud download m soundcloud download](https://cdn.slidesharecdn.com/ss_thumbnails/m-sc-110421173146-phpapp01-thumbnail-4.jpg)
That caught my attention because most of the time stream urls do exactly what they stand for. Now after filtering the requests I saw that there was a stream url. Here is what you will end up with after filtering those requests which have api in their url: If you ever see any requests being made to an api endpoint always explore these first. While looking at the requests in general I saw that Soundcloud is making multiple requests to an endpoint. We need to find a way to filter the requests so that they become manageable for us to sift through. You can see that there are already 100+ requests being made by Soundcloud. Don’t feel intimidated, we will make sense of all of this in just a bit. You should start seeing the requests pane getting populated by tons of different links. Now refresh the page with the developer tools open. After opening up the developer tools and navigating to the network tab you should end up with something similar to this: The network tab in the chrome developer tools will allow us to see all of the requests which the browser makes when we open Soundcloud. Now we need to open the Chrome developer tools. Open up Soundcloud and open this publically accessible music file which we will be using for testing purposes. mp3 url on the media page so we need to figure out how and from where Soundcloud gets the. Reverse Engineering the MP3 URL Generation Logic
M soundcloud download download#
This is merely an educational guide and should be used to download your own content only. Note: I don’t endorse illicit downloading of someone else’s content. So without any further ado let’s get started:
![m soundcloud download m soundcloud download](https://www.kapwing.com/resources/content/images/2019/08/final_5d51cf6a6227ad001336c885_58067.jpg)
I will try to make it as universal in nature as possible so that you can follow this project even if Soundcloud has changed its website layout or the way it serves media files. We will work on this project in a step by step basis where we will tackle each problem as we encounter it. We will create a Python script which will allow us to download even those songs which are not enabled for downloading.
M soundcloud download how to#
Hi guys, in this post we will learn how to bypass downloading restrictions on Soundcloud. Source Reverse Engineering Soundcloud API April 15, 2018 Creating a Python Script for Automating the URL generation