Forum Archive

Soundcloud Downloader

pudquick51

Yup, decided to do another one - mostly because it was interesting and this one definitely wasn't going to be available in app form.

As before with my other downloader, this particular script relies on the free 'iDownloads PLUS - Download Manager!' app in the app store (though it can be retooled to use other downloaders, provided they have a custom URL for launching the download URL in the app). I just happen to like this one because it's free and offers background downloads and 'Open In' functionality to move files afterwards.

http://gist.github.com/pudquick/5394702

Usage is with the bookmark listed at the bottom of the gist.

Visit a page in Safari on Soundcloud (m.soundcloud.com) on your iOS device, find one with a song you like, then click on the bookmark to trigger a download of the .mp3 (even if the page does not offer a direct download link itself).

Unfortunately the limitations of iOS make it so that .mp3 files you download can't be added to your device's music library programmatically. You'll have to save the .mp3 file from your device to iTunes and then sync it back to your device (or have a separate music player app, of which there are many, that you can 'Open In' the .mp3 file). In the meantime, iDownloads also offers a built-in media player so you can get to the listening :)

There's an issue at the moment where the script takes a long delay in attempting to get a client id for the download. I'm not quite sure why it's doing that. When I was testing the script on my MBP, I didn't experience delays even remotely similar. I'll work on that more later when I get a chance and hopefully eliminate the delay.

pudquick51

Update: Figured out what the problem was! It was a slowness in the engine for converting the text response of an HTTP request. On a desktop machine, it's relatively quick (requests.get('http://something').text), but on an iOS device it's too much.

So I forced the CDN to offer up the uncompressed javascript and just directly access the bytes in the response as a string with .content instead of .text. Works great!

Now song downloads are almost instantaneous! 😄

eliskan175

You sir are a god among programmers.

rustywild245

work for me, thanx!!!

DKatz225

I'm having trouble getting this to work for some reason. I get an 'invalid syntax' error on line 16 where all the header info is. Any idea what could be causing this?

Dalorbi39

@pudquick, you've done it again

midimuso

There was an error message while trying this script -
Line 20 Index Error:List index out of range.
The original script refers to this URL in line 20
m-a.sndcdn.com
But when I looked at the source code for the mp3 I was trying to download
I see that it is
m-a-tb.sndcdn.com
So I updated the Script with this new URL, in 2 places
line 20
line 24
and tried again , this time it launched the iDownloads+ App
and Downloaded OK.
..................................
20 the_js = find_xtsite_js.rsplit('m-a-tb.sndcdn.com',1)[1].split('"',1)[0].split('/')[-1]
21 print " .. getting client_id .. "
22 new_headers = {'Accept-Encoding': 'identity', 'Connection': 'close'}
23 sess.headers.update(new_headers)
24 find_client_id = sess.get('http://m-a-tb.sndcdn.com/' + the_js)

violetviana6596

If you are a music lover and looking for the best ever SoundCloud converter services, then the best thing to do is have a look at the website of downloadmysound. There are lots of useful features available. All the details are available here and you will also find step by step explanation on the various services here. The entire process would take place much faster and you will have to just go through the instructions and follow them. Then you will be all set to enjoy the numerous amazing tracks of your choice.

av2006

It works for me and thumbs up for this music downloader. Thanks

Narendhiran24

I just implemented the same python script on the website https://www.klickaud.com soundcloud downloader and now it's perfectly works for me.

jackwalesthetvl

Thanks for the useful information. It help a lot.

devacharya55

Seeing something like this for the first time
Never knew that the content from SoundCloud can be downloaded! This is surely an eye opener.

devacharya55

You can use extension to download from sound cloud.

adamdevine

Thanks for the inforation.

westernira

Thanks for this information. It really helpful for me. Also if you face any connectivity trouble while downloading you may refer router login guide. It's useful.

Peter Campbell

You can use soundcloud2mp3.co and download any song from SoundCloud for free.

Blackshady

Maybe you can try Joyoshare Audio Recorder.

It seems that it is able to download singles or playlists from SoundCloud efficiently. Plus, the recorder provides 16 formats instead of mp3 alone.

briandua

I rely on a free soundcloud to mp3 downloader. This particular script relies heavily upon it, but can be retooled if you want other download managers that have custom URL launching options for your downloads from within their apps - provided they also offer background downloading and opening up functionality too!