通过他们的API下载从SoundCloud的曲目 [英] Download tracks from Soundcloud via their API
本文介绍了通过他们的API下载从SoundCloud的曲目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我身边有喜欢1000的SoundCloud上轨道,我想下载可用的那些下载。
是否可以使用API来下载这些在这里下载选项可用?
感谢您的任何指针: - )
解决方案
是的。这是可能的。
- 发送到
/用户/(编号)的请求/收藏夹
这里ID
是你的用户ID。它会回报你喜爱的曲目全部。 - 对于每个轨道
- 检查
下载
属性的值。如果这个属性是不是可用的请求/曲目/ {ID}
来获得歌曲的所有属性。 - 如果
下载
是真实的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.
- Send a request to
/users/{id}/favorites
hereid
is your user id. it'll return all of your favorite tracks. - For each tracks
- Check the
downloadable
property's value. if this property is not available request to/tracks/{id}
to get all the properties of tracks. - If
downloadable
is true download it from url found ondownload_url
property.
- Check the
View Reference
这篇关于通过他们的API下载从SoundCloud的曲目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文