下载/备份所有 soundcloud 用户数据

Download / backup all soundcloud user data

我尝试搜索一种工具,可以下载与 soundcloud 用户相关的所有数据(上传曲目、likes/collection、转发、播放列表、评论、群组等),并在本地备份,但还没有到目前为止运气不错。用户数据格式并不重要,可以是 XML 或 JSON 之类的格式。我想用他们的 API 创建它并不难,但我觉得很奇怪,现在还没有这样的工具,所以我想先在这里问一下。

不是一个完整的答案,但我会在这里收集一些最终可能对某些人有用的信息。基于本文 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);