akakoori / drrrbot

A bot for DRRR.COM
11 stars 4 forks source link

soundcloud? #15

Open akakoori opened 8 years ago

akakoori commented 8 years ago

https://api-v2.soundcloud.com/search/tracks?q=99&user_id=168945-570457-974856-701481&client_id=02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea&limit=10&offset=0&linked_partitioning=1&app_version=1474905173

https://api-v2.soundcloud.com/search/albums?q=99&user_id=168945-570457-974856-701481&client_id=02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea&limit=10&offset=0&linked_partitioning=1&app_version=1474905173

https://api-v2.soundcloud.com/search/playlists?q=99&user_id=168945-570457-974856-701481&client_id=02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea&limit=10&offset=0&linked_partitioning=1&app_version=1474905173

https://api.soundcloud.com/i1/tracks/103455506/streams?client_id=02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea&app_version=1474905173

这样获取的 URL 只有自己能听。。

最好的办法还是注册官方 app。 但是在 SC 注册账号失败,也无法访问 https://developers.soundcloud.com/ ,比较尴尬。 user_id 是记录在 cookie 中。 app_version 应该是常量。 试试看抓 client_id 的算法?

, function(e, t, n) {
    "use strict";
    var i = e.exports = new (n(241));
    n(913).applyTo(i),
    n(3).each({
        app_id: 1e3 * String(Date.now()).substr(-8) + Math.floor(1e3 * Math.random()),
        app_version: null ,
        public_api_host: "https://api.soundcloud.com/",
        api_v2_host: "https://api-v2.soundcloud.com/",
        client_application_id: 46941,
        client_id: "02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea",
sparanoid commented 8 years ago

需要帮忙注册 app 吗?

akakoori commented 8 years ago

@sparanoid 好啊好啊