import json, zlib, base64, time
def join_token():
str_json = {}
str_json['rId'] = 100043
str_json['ver'] = '1.0.6'
str_json['ts'] = 1572349674982
str_json['cts'] = 1572349675092
str_json['brVD'] = [370, 350]
str_json['brR'] = [[1366, 768], [1366, 728], 24, 24]
str_json['bI'] = ["https://epassport.meituan.com/account/unitivelogin?service=hotel&loginsource=14&noSignup=true&bg_source=4&loginurl=https://eb.meituan.com/ebk/login/login.html&continue=https://eb.meituan.com/gw/account/biz/settoken?redirect_uri=https://eb.meituan.com/ebk/login/settoken.html","https://eb.meituan.com/ebk/login/login.html"]
str_json['mT'] = ["82,177","81,176","78,176","75,175","70,172","68,172","67,170","65,169","64,169","63,169","60,169","54,169","44,169","36,169","24,169","15,169","10,168","4,167","7,80","19,86","19,91","19,95","18,97","14,99","35,131","70,132","85,132","93,134","96,134","100,136"]
str_json['kT'] = ["6,INPUT","5,INPUT","4,INPUT","3,INPUT","2,INPUT","1,INPUT","?,INPUT","?,INPUT","?,INPUT","?,INPUT","?,INPUT","?,INPUT","?,INPUT"]
str_json['aT'] = ["82,177,BUTTON","128,138,INPUT","109,86,INPUT"]
str_json['tT'] = []
str_json['aM'] = ''
str_json['sign'] = "eJwFwUEKgDAMBMC/9AHNXfDkS9oQatBuhG4QfL0z5Y7hOAJ0pO0n+axNxHqd5syGqjFlvNJUI0Hp/skyMi5D+QHa1xc5"
print(json.dumps(str_json, separators=(',', ':'), ensure_ascii=False))
print(bytes(json.dumps(str_json, separators=(',', ':'), ensure_ascii=False), encoding="utf8"))
token_decode = zlib.compress(
bytes(json.dumps(str_json, separators=(',', ':'), ensure_ascii=False), encoding="utf8"))
print(token_decode)
token = str(base64.b64encode(token_decode), encoding="utf8")
print(base64.b64encode(token_decode))
return token
if __name__ == '__main__':
print(join_token())
楼主,我搞定啦 |