淘口令解析
通过程序解析淘口令,无需联盟开发者权限,只需几行代码就可实现自动识别淘口令:
def query_password(sign_server, share_password):
data = "{\"passwordContent\":\"" + share_password + "\"}"
v = "1.0"
api = "mtop.taobao.sharepassword.querypassword"
call_gw_api(sign_server, api, v, data)
if __name__ == '__main__':
sign_server = "http://192.168.3.5:6778/xsign"
share_password = "hv****MNT5"
query_password(sign_server, share_password)
程序返回结果:
{
"api": "mtop.taobao.sharepassword.querypassword",
"data": {
"createAppkey": "21380790",
"validDate": "15796****632",
"isTaoFriend": "false",
"weakShow": "0",
"taopwdOwnerId": "59****22",
"title": "淘口令",
"templateId": "common",
"extendInfo": "{\"groupName\":\"薄呢外套\",\"instanceId\":\"42\",\"groupDesc\":\"我发现一个特别适合你的主题\",\"groupVister\":\"穿着舒适透气\",\"callBack\":\"38\",\"genAppKey\":\"21380790\",\"groupImage\":\"//gw.alicdn.com/tfs/TB1t4O1skvoK1RjSZFwXXciCFXa-195-195.png\",\"groupFlag\":\"\"}",
"myTaopwdToast": "",
"content": "我发现一个特别适合你的主题:薄呢外套,快去看看吧",
"url": "https://market.m.taobao.com/app/tbsearchwireless-pages/cloudtopic-joint-page/p/cloudtopic-joint-page?*********",
"sPlan-rPlan": "A:B",
"target": "copy",
"backflowTemplateId": "common",
"picUrl": "http://gw.alicdn.com/tfs/TB1ITjGshnaK1RjSZFBXXcW7VXa-940-940.png",
"popUrl": null,
"rankPic": null,
"password": "hv****T5",
"ownerName": "我*****",
"price": null,
"rankNum": null,
"ownerFace": "https://gw.alicdn.com/sns_logo/T1oh*****.jpg",
"bizId": "iCloud",
"popType": null
},
"ret": [
"SUCCESS::调用成功"
],
"v": "1.0"
}
已对结果部分敏感信息打码处理,程序实际使用中是完整的内容。