我尝试搜索可以下载与soundcloud用户相关的所有数据的工具(上传的曲目,喜欢/收集,转发,播放列表,评论,群组等),在本地备份,但到目前为止还没有运气。用户数据格式并不重要,可能是XML或JSON。我想使用他们的API创建它并不困难,但我觉得很奇怪没有这样的工具,所以我想先问一下。
答案 0 :(得分:0)
不是一个完整的答案,但我会在这里收集一些最终可能对某些人有用的信息。基于这篇文章https://helgesverre.com/blog/fetch-info-from-soundcloud-api/
首先,您需要在此处注册一个应用,您将获得您的客户端ID http://soundcloud.com/you/apps/new
$clientid = "*******"; // Your API Client ID
$userid = "****"; // ID of the user you are fetching the information for
$username = "*****";
// build our API URL
$url = "http://api.soundcloud.com/resolve.json? url=http://soundcloud.com/{$username}&client_id={$clientid}";
$user_json = file_get_contents($url);
$tracks_url = "http://api.soundcloud.com/users/{$userid}/tracks.json?client_id={$clientid}";
$tracks_json = file_get_contents($tracks_url);
$playlists_url = "http://api.soundcloud.com/users/{$userid}/playlists.json?client_id={$clientid}";
$playlists_json = file_get_contents($playlists_url);
$followings_url = "http://api.soundcloud.com/users/{$userid}/followings.json?client_id={$clientid}&page_size=200"; // 200 is max
$followings_json = file_get_contents($followings_url);
$followers_url = "http://api.soundcloud.com/users/{$userid}/followers.json?client_id={$clientid}&page_size=200"; // 200 is max
$followers_json = file_get_contents($followers_url);
$reposts_url = "http://api-v2.soundcloud.com/profile/soundcloud:users:{$userid}?client_id={$clientid}&limit=1000&offset=0"; // 1000 works
$reposts_json = file_get_contents($reposts_url);