The code is for learning and communication only , Do not use for illegal purposes
import hashlib
import json
from sign import getSign
def getMd5(s):
m = hashlib.md5()
m.update(s.encode("utf-8"))
return m.hexdigest()
if __name__ == '__main__':
params = {
"os": "APPLET", "osVersion": "1.0.0", "userId": "", "userToken": ""
}
data = {
"categoryId": None,
"topLevelId": "868250804392407040",
"keyword": None,
"page": 1,
"size": 10,
"sort": None,
"levelId": None,
"levelCode": None,
"integralType": None
}
sign = getSign(params, data)
print(sign)