快手直播数据爬虫
有时候获取接口会更新,需要重新抓包
cursor = conn.cursor()
def getSig(param, body, salt='382700b563f4'):
params = param.copy()
params.update(body)
keys = list(params.keys())
keys.sort()
temp_str = ''
for key in keys:
temp_str = temp_str + key.strip() + '=' + params[key].strip()
# return get(temp_str)
sig = temp_str + salt
m = hashlib.md5()
m.update