NetCloud icon indicating copy to clipboard operation
NetCloud copied to clipboard

请问是否可以添加一个登陆后get用户每日推荐歌单的方法?

Open SidekickLx opened this issue 7 years ago • 0 comments

应该蛮简单的 这个方法我自己加上了 就是fork什么的很麻烦,我自己也是找到这个库就拿着用一下,就不提pr了 如果您需要的话我也可以走个流程😀

#personal daily rcmd
'USER_DAILY_RCMD': '/weapi/v2/discovery/recommend/songs'

def get_self_daily_recommand(self, offset=0,limit=1000):
    response = self.login()
    uid =response.json()['account']['id']
    if uid is None:
        raise ParamsError()
        self.method = 'USER_DAILY_RCMD'
        self.data = {'offset': offset, 'uid': uid, 'limit': limit, 'csrf_token': ''}
        self.send()
        return self.response

SidekickLx avatar May 24 '18 10:05 SidekickLx