通过他们的API下载从SoundCloud的曲目 [英] Download tracks from Soundcloud via their API

查看:145
本文介绍了通过他们的API下载从SoundCloud的曲目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我身边有喜欢1000的SoundCloud上轨道,我想下载可用的那些下载。

是否可以使用API​​来下载这些在这里下载选项可用?

感谢您的任何指针: - )


解决方案

是的。这是可能的。


  1. 发送到 /用户/(编号)的请求/收藏夹这里 ID 是你的用户ID。它会回报你喜爱的曲目全部。

  2. 对于每个轨道

    1. 检查下载属性的值。如果这个属性是不是可用的请求 /曲目/ {ID} 来获得歌曲的所有属性。

    2. 如果下载是真实的URL下载它 DOWNLOAD_URL 属性中找到。


查看参考

I have around 1000 liked tracks on Soundcloud and I'd like to download the ones available for download.

Is it possible to use the API to download these where a download option is available?

Thanks for any pointers :-)

解决方案

Yes. its possible.

  1. Send a request to /users/{id}/favorites here id is your user id. it'll return all of your favorite tracks.
  2. For each tracks

    1. Check the downloadable property's value. if this property is not available request to /tracks/{id} to get all the properties of tracks.
    2. If downloadable is true download it from url found on download_url property.

View Reference

这篇关于通过他们的API下载从SoundCloud的曲目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆