def login_fun(): url = config.HOST + '/v1/authorizations' data = { "brushed":"1", "deviceModel":"oppor7sm", "deviceName":"OPPO", "deviceToken":"86787602332210513572489850", "memorySize":"32", "openudid":"867876023322105", "password":"******", "phone":"13572489850", "systemVersion":"5.1.1" } s = Sign() new_data = s.signfun(data) print new_data print datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f') response = requests.post(url=url, headers=config.HEADER_ANDROID, data=new_data,verify=False) print datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f') print response token = '' if 200 == response.status_code: str_content = response.content dict_content = json.loads(str_content) print 'response:', str_content.decode("unicode-escape") if '10000' == dict_content['status']: token = dict_content['data']['info']['token'] print u'当前token:', token else: print u'获取token失败' return token
def login_fun(): url = host + '/v1/authorizations' data = { "phone": "13572489850", "password": "******", "openudid": "7d2d43e69fb2c70b31e2f606ba425a517c54e4f0", "deviceName": '祝材的 iPhone', "deviceToken": "2d2deb394acbe9ffc6601dc3a9d294ef683c239585508a82679432b6b58ddf0d", "memorySize": "16", "systemVersion": "10.3.3", "deviceModel": "iPhone 6 Plus" } s = Sign() new_data = s.signfun(data) print new_data response = requests.post(url=url, headers=config.HEADER_IOS, data=data, verify=False) print response token = '' if 200 == response.status_code: str_content = response.content dict_content = json.loads(str_content) token = dict_content['data']['info']['token'] print 'response:', str_content.decode("unicode-escape") print 'token:', token return token
def status_fun(headers): url = host + '/v1/user/info/status' s = Sign() params = s.signfun({}) print params print datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f') response = requests.get(url=url,headers=headers,params=params,verify=False) print datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f') if 200 == response.status_code: print response.content.decode("unicode-escape")
def init_fun(headers): url = host + '/v1/loan/init' s = Sign() params = s.signfun({"openudid":"867876023322105"}) print params print datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f') response = requests.get(url=url,headers=headers,params=params,verify=False) print datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f') if 200 == response.status_code: # print response.content.decode("unicode-escape") print json.dumps(json.loads(response.content), ensure_ascii=False, indent=2)
def loan(): url = config.HOST + '/v1/h5/user/login' data = {"phone": "18192496382", "password": "******"} s = Sign() new_data = s.signfun(data) print new_data response = requests.post(url=url, headers=config.HEADER_IOS, data=data) print response token = '' if 200 == response.status_code: str_content = response.content dict_content = json.loads(str_content)
def create_fun(): url = host + '/v1/captcha/create' data = { "pictureToken": "1533621653000472632" } s = Sign() new_data = s.signfun(data) print new_data response = requests.get(url=url, headers=config.HEADER_IOS, params=new_data) if 200 == response.status_code: print response with open('picture.jpg', 'wb') as file: file.write(response.content)
def pre_fun(): url = host + '/v1/user/login/pre' data = { "phone": "13572489850" } s = Sign() new_data = s.signfun(data) print new_data # 以json形式发送post请求 s = json.dumps(new_data) response = requests.post(url=url,headers=config.HEADER_IOS, data=s) if response.status_code == 200: print response.content.decode("unicode-escape")
def sendcode_fun(): url = host + '/v1/sendcode' data = { "phone": "13572489850", "action":"register", "code":"2445", "pictureToken":"1533621653000472632" } s = Sign() new_data = s.signfun(data) print new_data response = requests.get(url=url, headers=config.HEADER_IOS, params=new_data) print response if 200 == response.status_code: print response.content.decode("unicode-escape")
def login_fun(): url = config.HOST + '/v1/h5/user/login' data = {"phone": "18192496382", "password": "******"} s = Sign() new_data = s.signfun(data) print new_data response = requests.post(url=url, headers=config.HEADER_IOS, data=data) print response token = '' if 200 == response.status_code: str_content = response.content dict_content = json.loads(str_content) token = dict_content['data']['info']['token'] print 'response:', str_content.decode("unicode-escape") print 'token:', token return token
def register_fun(): url = host + '/v1/register' data = { "phone": "18192496382", "password": "******", "code": "354618", # "channel_id": "1", "pay_type":"3" } s = Sign() new_data = s.signfun(data) print new_data # 以json形式发送post请求 s = json.dumps(new_data) response = requests.post(url=url,headers=config.HEADER_IOS, data=s) print response if response.status_code == 200: print response.content.decode("unicode-escape")
def loan_fun(headers): url = host + '/v1/loan' data = { "money":"2500", "blackBox":"eyJ0b2tlbklkIjoiOStHOTEzNStxNHhJNmpEWWFjc0FWdFFPQUNKRThhQnZMMGFvTW1QV2FnaDI3WmJRMXpRbzIrYUM3SitNTVpLZjRncmxvWUoxdktISk0zNENmT0hkeFE9PSIsIm9zIjoiaU9TIiwicHJvZmlsZVRpbWUiOjIwNywidmVyc2lvbiI6IjMuMS4wIn0=", "device_id":"572774" } s = Sign() new_data = s.signfun(data) print new_data print datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f') response = requests.post(url=url, headers=headers, data=new_data,verify=False) print datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f') print response if 200 == response.status_code: str_content = response.content dict_content = json.loads(str_content) print 'response:', str_content.decode("unicode-escape")
def gxb_get_token(headers): url = host + '/v1/gxb/token' params = {'auth_type': 'sesame_multiple', 'user_id': '830105286'} s = Sign() new_params = s.signfun(params) print new_params print datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f') response = requests.get(url=url, headers=headers, params=new_params, verify=False) print datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f') gxb_token = '' if 200 == response.status_code: dict_content = json.loads(response.content) if '10000' == dict_content['status']: gxb_token = dict_content['data']['token'] else: gxb_token = "" print response.content.decode("unicode-escape") return gxb_token
#!/user/bin/env python # -*- coding:utf-8 -*- # @Time : 2018/8/14 14:09 # @Author : 疏影 # @File : temp.py from CashLoanProject.common import config import requests import json from CashLoanProject.common.addSign import Sign if __name__ == '__main__': # data = { # 'version':'1.0.1' # } data = { "brushed": "1", "deviceModel": "oppor7sm", "deviceName": "OPPO", "deviceToken": "86787602332210513572489850", "memorySize": "32", "openudid": "867876023322105", "password": "******", "phone": "13572489850", "systemVersion": "5.1.1" } s = Sign() new_data = s.signfun(data) print new_data
def update_contact(headers): url = config.HOST + '/v1/info/contact' data = { "contact": "[{\"name\":\"OPPO官方客服\",\"tel\":\"4001666888\"},{\"name\":\"自己\",\"tel\":\"13572489850\"}," "{\"name\":\"三顾冒菜\",\"tel\":\"18092051314\"},{\"name\":\"孙力\",\"tel\":\"8617730600729\"}," "{\"name\":\"盛伟1\",\"tel\":\"17089602464\"},{\"name\":\"lwld隔壁\",\"tel\":\"18691082172\"}," "{\"name\":\"郑小红健\",\"tel\":\"8615109226928\"},{\"name\":\"饺子馆\",\"tel\":\"029,88262120\"}," "{\"name\":\"刘晨\",\"tel\":\"8618292825591\"},{\"name\":\"张静媛招商\",\"tel\":\"15891440252\"}," "{\"name\":\"钉钉免费电话\",\"tel\":\"057188157855,4001696188,4000966288,4008287660\"}," "{\"name\":\"赵亚光\",\"tel\":\"13679277905\"},{\"name\":\"李娜\",\"tel\":\"15029574201\"}," "{\"name\":\"张聚合\",\"tel\":\"18202944180\"},{\"name\":\"陈彬彬\",\"tel\":\"13759962993\"}," "{\"name\":\"高千里\",\"tel\":\"15929963730\"},{\"name\":\"王远\",\"tel\":\"15771977731\"}," "{\"name\":\"长城宽带\",\"tel\":\"18629421205\"},{\"name\":\"王亚路\",\"tel\":\"13379226031\"}," "{\"name\":\"董宁\",\"tel\":\"13227886879\"},{\"name\":\"卞峰峰\",\"tel\":\"13032966519\"}," "{\"name\":\"盛伟置业\",\"tel\":\"02962550317\"},{\"name\":\"王\",\"tel\":\"18192692314\"}," "{\"name\":\"妈\",\"tel\":\"13991551597\"},{\"name\":\"胡少隐2\",\"tel\":\"18192897196,18729329877\"}," "{\"name\":\"中软向甜HR\",\"tel\":\"18189251951\"},{\"name\":\"明德门派\",\"tel\":\"02985410027\"}," "{\"name\":\"张元珍\",\"tel\":\"15202433789\"},{\"name\":\"刘先梅\",\"tel\":\"15829720602\"}," "{\"name\":\"崔征\",\"tel\":\"18629379527\"},{\"name\":\"中软刘婷助理\",\"tel\":\"89633905\"}," "{\"name\":\"中软任翔PM\",\"tel\":\"18192627526\"},{\"name\":\"林丹\",\"tel\":\"13892897969\"}," "{\"name\":\"中软刘波PM\",\"tel\":\"18092311886\"},{\"name\":\"任翔\",\"tel\":\"18192627526\"}," "{\"name\":\"自己电信\",\"tel\":\"18192496382\"},{\"name\":\"中软龙白彦组长\",\"tel\":\"18691955878\"}," "{\"name\":\"中软卓兴UI\",\"tel\":\"18629408987\"},{\"name\":\"中软蕾蕾\",\"tel\":\"13519121150\"}," "{\"name\":\"巴士6593师傅\",\"tel\":\"15619253359\"},{\"name\":\"賈\",\"tel\":\"13720529421\"}," "{\"name\":\"徐xx\",\"tel\":\"13571496627\"},{\"name\":\"马房东\",\"tel\":\"13909290085\"}," "{\"name\":\"胡永居主业\",\"tel\":\"13772116929\"},{\"name\":\"搬家公司\",\"tel\":\"88248888\"}," "{\"name\":\"高电信\",\"tel\":\"18009183803\"},{\"name\":\"相鹏飞\",\"tel\":\"18091883928\"}," "{\"name\":\"京东快递\",\"tel\":\"02968829359\"},{\"name\":\"papa\",\"tel\":\"13571449991\"}," "{\"name\":\"中软马慧琴\",\"tel\":\"15991737693\"},{\"name\":\"张空调安装\",\"tel\":\"15029068207\"}," "{\"name\":\"瑞恩1\",\"tel\":\"02989561328\"},{\"name\":\"瑞恩2\",\"tel\":\"02989183895\"}," "{\"name\":\"小潇\",\"tel\":\"13572490791\"},{\"name\":\"吴租\",\"tel\":\"18267999694\"}," "{\"name\":\"链川刘瑞兰\",\"tel\":\"15995438286\"},{\"name\":\"链川司小玲\",\"tel\":\"18602997967\"}," "{\"name\":\"物流\",\"tel\":\"057187750556\"},{\"name\":\"汪\",\"tel\":\"18668120572\"}," "{\"name\":\"齐白雪\",\"tel\":\"15209249246\"},{\"name\":\"test1\",\"tel\":\"13886248693\"}," "{\"name\":\"top1\",\"tel\":\"17791646487\"},{\"name\":\"top2\",\"tel\":\"02585613081\"}," "{\"name\":\"top3\",\"tel\":\"18966804907\"},{\"name\":\"top4\",\"tel\":\"02968620769\"}," "{\"name\":\"top5\",\"tel\":\"4001500800\"},{\"name\":\"testA\",\"tel\":\"13587108224\"}," "{\"name\":\"testB\",\"tel\":\"15958048241\"},{\"name\":\"testC\",\"tel\":\"15273316776\"}," "{\"name\":\"testc\",\"tel\":\"13157127178\"},{\"name\":\"testC\",\"tel\":\"13587128224\"}," "{\"name\":\"testd\",\"tel\":\"10086\"},{\"name\":\"testC\",\"tel\":\"4006275757\"}," "{\"name\":\"teste\",\"tel\":\"13387414335\"},{\"name\":\"lltestC\",\"tel\":\"13958055281\"}," "{\"name\":\"testf\",\"tel\":\"18684539699\"},{\"name\":\"12testC\",\"tel\":\"17682326879\"}," "{\"name\":\"testg\",\"tel\":\"13157127178\"},{\"name\":\"13testC\",\"tel\":\"13587128224\"}," "{\"name\":\"testA\",\"tel\":\"18684539699\"},{\"name\":\"14testC\",\"tel\":\"18368846861\"}," "{\"name\":\"testB\",\"tel\":\"13257127178\"},{\"name\":\"1111testC\",\"tel\":\"13587128224\"}," "{\"name\":\"testC\",\"tel\":\"13357127178\"},{\"name\":\"15testC\",\"tel\":\"13587128224\"}," "{\"name\":\"testD\",\"tel\":\"13157127178\"},{\"name\":\"16testC\",\"tel\":\"13064747751\"}," "{\"name\":\"testE\",\"tel\":\"13156127178\"},{\"name\":\"17testC\",\"tel\":\"13587128224\"}," "{\"name\":\"testF\",\"tel\":\"13157157178\"},{\"name\":\"18testC\",\"tel\":\"13587128224\"}," "{\"name\":\"testE\",\"tel\":\"13157627178\"},{\"name\":\"19testC\",\"tel\":\"13587128224\"}," "{\"name\":\"testG\",\"tel\":\"13157127178\"},{\"name\":\"20testC\",\"tel\":\"13587128224\"}," "{\"name\":\"testH\",\"tel\":\"13157147178\"},{\"name\":\"34testC\",\"tel\":\"13587128224\"}," "{\"name\":\"testz\",\"tel\":\"13157127178\"},{\"name\":\"45testC\",\"tel\":\"13587128224\"}," "{\"name\":\"testx\",\"tel\":\"13157178178\"},{\"name\":\"454testC\",\"tel\":\"13587128224\"}," "{\"name\":\"testc\",\"tel\":\"13157127178\"},{\"name\":\"te5stC\",\"tel\":\"13587128224\"}," "{\"name\":\"testv\",\"tel\":\"13157127177\"},{\"name\":\"te55stC\",\"tel\":\"13587128224\"}," "{\"name\":\"testb\",\"tel\":\"13157127176\"},{\"name\":\"t5e55stC\",\"tel\":\"13587128224\"}," "{\"name\":\"testn\",\"tel\":\"13157127175\"},{\"name\":\"te55stC\",\"tel\":\"13587128224\"}," "{\"name\":\"testm\",\"tel\":\"13157127174\"},{\"name\":\"te66stC\",\"tel\":\"13587128224\"}," "{\"name\":\"test7\",\"tel\":\"13157127173\"},{\"name\":\"tes66tC\",\"tel\":\"13587128224\"}," "{\"name\":\"testll\",\"tel\":\"13157127172\"},{\"name\":\"testlltestC\",\"tel\":\"11587128224\"}," "{\"name\":\"test12\",\"tel\":\"13157127171\"},{\"name\":\"test12testC\",\"tel\":\"12587128224\"}," "{\"name\":\"test13\",\"tel\":\"13157127175\"},{\"name\":\"test13testC\",\"tel\":\"14587128224\"}," "{\"name\":\"test14\",\"tel\":\"13157127168\"},{\"name\":\"test14testC\",\"tel\":\"15587128224\"}," "{\"name\":\"test15\",\"tel\":\"13157127158\"},{\"name\":\"test15testC\",\"tel\":\"16587128224\"}," "{\"name\":\"test16\",\"tel\":\"13157127148\"},{\"name\":\"test16testC\",\"tel\":\"17587128224\"}," "{\"name\":\"test17\",\"tel\":\"13157127138\"},{\"name\":\"test17testC\",\"tel\":\"18587128224\"}," "{\"name\":\"test18\",\"tel\":\"13157127128\"},{\"name\":\"test18testC\",\"tel\":\"19587128224\"}," "{\"name\":\"test19\",\"tel\":\"13157127278\"},{\"name\":\"test19testC\",\"tel\":\"15587128224\"}," "{\"name\":\"test20\",\"tel\":\"13157127378\"},{\"name\":\"test20testC\",\"tel\":\"13687128224\"}," "{\"name\":\"1test\",\"tel\":\"12157127378\"},{\"name\":\"2test\",\"tel\":\"14157127378\"}," "{\"name\":\"3test\",\"tel\":\"15157127378\"},{\"name\":\"4test\",\"tel\":\"16157127378\"}," "{\"name\":\"5test\",\"tel\":\"17157127378\"},{\"name\":\"6test\",\"tel\":\"18157127378\"}," "{\"name\":\"1TOPP\",\"tel\":\"11845759494\"},{\"name\":\"ATOPP\",\"tel\":\"11845759491\"}," "{\"name\":\"2TOPP\",\"tel\":\"12845759494\"},{\"name\":\"bTOPP\",\"tel\":\"12845759492\"}," "{\"name\":\"3TOPP\",\"tel\":\"13845759494\"},{\"name\":\"cTOPP\",\"tel\":\"13845759493\"}," "{\"name\":\"4TOPP\",\"tel\":\"14845759494\"},{\"name\":\"dTOPP\",\"tel\":\"14845759494\"}," "{\"name\":\"5TOPP\",\"tel\":\"15845759494\"},{\"name\":\"eTOPP\",\"tel\":\"15845759495\"}," "{\"name\":\"6TOPP\",\"tel\":\"16845759494\"},{\"name\":\"fTOPP\",\"tel\":\"16845759496\"}," "{\"name\":\"7TOPP\",\"tel\":\"17845759494\"},{\"name\":\"gTOPP\",\"tel\":\"17845759497\"}," "{\"name\":\"8TOPP\",\"tel\":\"18845759494\"},{\"name\":\"hTOPP\",\"tel\":\"18845759498\"}," "{\"name\":\"9TOPP\",\"tel\":\"19845759494\"},{\"name\":\"jTOPP\",\"tel\":\"19845759499\"}," "{\"name\":\"10TOPP\",\"tel\":\"11045759494\"},{\"name\":\"10aOPP\",\"tel\":\"11045759490\"}," "{\"name\":\"11TOPP\",\"tel\":\"11145759494\"},{\"name\":\"11aOPP\",\"tel\":\"11145759491\"}," "{\"name\":\"12TOPP\",\"tel\":\"12245759494\"},{\"name\":\"12aOPP\",\"tel\":\"12245759492\"}," "{\"name\":\"13TOPP\",\"tel\":\"13345759494\"},{\"name\":\"13aOPP\",\"tel\":\"13345759493\"}," "{\"name\":\"14TOPP\",\"tel\":\"14445759494\"},{\"name\":\"14aOPP\",\"tel\":\"14445759494\"}," "{\"name\":\"15TOPP\",\"tel\":\"15545759494\"},{\"name\":\"15aOPP\",\"tel\":\"15545759495\"}," "{\"name\":\"16TOPP\",\"tel\":\"16645759494\"},{\"name\":\"16aOPP\",\"tel\":\"16645759496\"}," "{\"name\":\"17TOPP\",\"tel\":\"17745759494\"},{\"name\":\"17aOPP\",\"tel\":\"17745759497\"}," "{\"name\":\"18TOPP\",\"tel\":\"18845759494\"},{\"name\":\"18aOPP\",\"tel\":\"18845759498\"}," "{\"name\":\"19TOPP\",\"tel\":\"19945759494\"},{\"name\":\"19aOPP\",\"tel\":\"19945759499\"}," "{\"name\":\"20TOPP\",\"tel\":\"11005759494\"},{\"name\":\"20bOPP\",\"tel\":\"11005759404\"}," "{\"name\":\"21TOPP\",\"tel\":\"11115759494\"},{\"name\":\"21bOPP\",\"tel\":\"11115759414\"}," "{\"name\":\"22TOPP\",\"tel\":\"12225759494\"},{\"name\":\"22bOPP\",\"tel\":\"12225759424\"}," "{\"name\":\"23TOPP\",\"tel\":\"13335759494\"},{\"name\":\"23bOPP\",\"tel\":\"13335759434\"}," "{\"name\":\"24TOPP\",\"tel\":\"14445759494\"},{\"name\":\"24bOPP\",\"tel\":\"14445759444\"}," "{\"name\":\"25TOPP\",\"tel\":\"15555759494\"},{\"name\":\"25bOPP\",\"tel\":\"15555759454\"}," "{\"name\":\"26TOPP\",\"tel\":\"16665759494\"},{\"name\":\"26bOPP\",\"tel\":\"16665759464\"}," "{\"name\":\"27TOPP\",\"tel\":\"17775759494\"},{\"name\":\"27bOPP\",\"tel\":\"17775759474\"}," "{\"name\":\"28TOPP\",\"tel\":\"18885759494\"},{\"name\":\"28bOPP\",\"tel\":\"18885759484\"}," "{\"name\":\"29TOPP\",\"tel\":\"19995759494\"},{\"name\":\"29bOPP\",\"tel\":\"19995259494\"}," "{\"name\":\"30TOPP\",\"tel\":\"11000759494\"},{\"name\":\"30cOPP\",\"tel\":\"11000759094\"}," "{\"name\":\"31TOPP\",\"tel\":\"11110759494\"},{\"name\":\"31cOPP\",\"tel\":\"11110759194\"}," "{\"name\":\"32TOPP\",\"tel\":\"12220759494\"},{\"name\":\"32cOPP\",\"tel\":\"12220759294\"}," "{\"name\":\"33TOPP\",\"tel\":\"13330759494\"},{\"name\":\"33cOPP\",\"tel\":\"13330759394\"}," "{\"name\":\"34TOPP\",\"tel\":\"14440759494\"},{\"name\":\"34cOPP\",\"tel\":\"14440759494\"}," "{\"name\":\"35TOPP\",\"tel\":\"15550759494\"},{\"name\":\"35cOPP\",\"tel\":\"15550759594\"}," "{\"name\":\"36TOPP\",\"tel\":\"16660759494\"},{\"name\":\"36cOPP\",\"tel\":\"16660759694\"}," "{\"name\":\"37TOPP\",\"tel\":\"17770759494\"},{\"name\":\"37cOPP\",\"tel\":\"17770759794\"}," "{\"name\":\"38TOPP\",\"tel\":\"18880759494\"},{\"name\":\"38cOPP\",\"tel\":\"18880759894\"}," "{\"name\":\"39TOPP\",\"tel\":\"19990759494\"},{\"name\":\"39cOPP\",\"tel\":\"19990759994\"}," "{\"name\":\"40TOPP\",\"tel\":\"11001759494\"},{\"name\":\"40dOPP\",\"tel\":\"11001750494\"}," "{\"name\":\"41TOPP\",\"tel\":\"11111759494\"},{\"name\":\"41dOPP\",\"tel\":\"11111751494\"}," "{\"name\":\"42TOPP\",\"tel\":\"12221759494\"},{\"name\":\"42dOPP\",\"tel\":\"12221752494\"}," "{\"name\":\"43TOPP\",\"tel\":\"13331759494\"},{\"name\":\"43dOPP\",\"tel\":\"13331753494\"}," "{\"name\":\"44TOPP\",\"tel\":\"14441759494\"},{\"name\":\"44dOPP\",\"tel\":\"14441754494\"}," "{\"name\":\"45TOPP\",\"tel\":\"15551759494\"},{\"name\":\"45dOPP\",\"tel\":\"15551755494\"}," "{\"name\":\"46TOPP\",\"tel\":\"16661759494\"},{\"name\":\"46dOPP\",\"tel\":\"16661756494\"}," "{\"name\":\"47TOPP\",\"tel\":\"17771759494\"},{\"name\":\"47dOPP\",\"tel\":\"17771757494\"}," "{\"name\":\"48TOPP\",\"tel\":\"18881759494\"},{\"name\":\"48dOPP\",\"tel\":\"18881758494\"}," "{\"name\":\"49TOPP\",\"tel\":\"19991759494\"},{\"name\":\"49dOPP\",\"tel\":\"19991759491\"}," "{\"name\":\"50TOPP\",\"tel\":\"11002759494\"},{\"name\":\"50eOPP\",\"tel\":\"11005759494\"}," "{\"name\":\"51TOPP\",\"tel\":\"11112759494\"},{\"name\":\"51eOPP\",\"tel\":\"11115759494\"}," "{\"name\":\"52TOPP\",\"tel\":\"12222759494\"},{\"name\":\"52eOPP\",\"tel\":\"12225759494\"}," "{\"name\":\"53TOPP\",\"tel\":\"13332759494\"},{\"name\":\"53eOPP\",\"tel\":\"13335759494\"}," "{\"name\":\"54TOPP\",\"tel\":\"14442759494\"},{\"name\":\"54eOPP\",\"tel\":\"14445759494\"}," "{\"name\":\"55TOPP\",\"tel\":\"15552759494\"},{\"name\":\"55eOPP\",\"tel\":\"15555759494\"}," "{\"name\":\"56TOPP\",\"tel\":\"16662759494\"},{\"name\":\"56eOPP\",\"tel\":\"16665759494\"}," "{\"name\":\"57TOPP\",\"tel\":\"17772759494\"},{\"name\":\"57eOPP\",\"tel\":\"17775759494\"}," "{\"name\":\"58TOPP\",\"tel\":\"18882759494\"},{\"name\":\"58eOPP\",\"tel\":\"18885759494\"}," "{\"name\":\"59TOPP\",\"tel\":\"19992759494\"},{\"name\":\"59eOPP\",\"tel\":\"19995759494\"}," "{\"name\":\"60TOPP\",\"tel\":\"11003759494\"},{\"name\":\"60fOPP\",\"tel\":\"11008759494\"}," "{\"name\":\"61TOPP\",\"tel\":\"11113759494\"},{\"name\":\"61fOPP\",\"tel\":\"11118759494\"}," "{\"name\":\"62TOPP\",\"tel\":\"12223759494\"},{\"name\":\"62fOPP\",\"tel\":\"12228759494\"}," "{\"name\":\"63TOPP\",\"tel\":\"13333759494\"},{\"name\":\"63fOPP\",\"tel\":\"13338759494\"}," "{\"name\":\"64TOPP\",\"tel\":\"14443759494\"},{\"name\":\"64fOPP\",\"tel\":\"14448759494\"}," "{\"name\":\"65TOPP\",\"tel\":\"15553759494\"},{\"name\":\"65fOPP\",\"tel\":\"15558759494\"}," "{\"name\":\"66TOPP\",\"tel\":\"16663759494\"},{\"name\":\"66fOPP\",\"tel\":\"16668759494\"}," "{\"name\":\"67TOPP\",\"tel\":\"17773759494\"},{\"name\":\"67fOPP\",\"tel\":\"17778759494\"}," "{\"name\":\"68TOPP\",\"tel\":\"18883759494\"},{\"name\":\"68fOPP\",\"tel\":\"18888759494\"}," "{\"name\":\"69TOPP\",\"tel\":\"19993759494\"},{\"name\":\"69fOPP\",\"tel\":\"19998759494\"}," "{\"name\":\"70TOPP\",\"tel\":\"11004759494\"},{\"name\":\"70gOPP\",\"tel\":\"11004779494\"}," "{\"name\":\"71TOPP\",\"tel\":\"11114759494\"},{\"name\":\"71gOPP\",\"tel\":\"11114779494\"}," "{\"name\":\"72TOPP\",\"tel\":\"12224759494\"},{\"name\":\"72gOPP\",\"tel\":\"12224779494\"}," "{\"name\":\"73TOPP\",\"tel\":\"13334759494\"},{\"name\":\"73gOPP\",\"tel\":\"13334779494\"}," "{\"name\":\"74TOPP\",\"tel\":\"14444759494\"},{\"name\":\"74gOPP\",\"tel\":\"14444779494\"}," "{\"name\":\"75TOPP\",\"tel\":\"15554759494\"},{\"name\":\"75gOPP\",\"tel\":\"15554779494\"}," "{\"name\":\"76TOPP\",\"tel\":\"16664759494\"},{\"name\":\"76gOPP\",\"tel\":\"16664779494\"}," "{\"name\":\"77TOPP\",\"tel\":\"17774759494\"},{\"name\":\"77gOPP\",\"tel\":\"17774779494\"}," "{\"name\":\"78TOPP\",\"tel\":\"18884759494\"},{\"name\":\"78gOPP\",\"tel\":\"18884779494\"}," "{\"name\":\"79TOPP\",\"tel\":\"19994759494\"},{\"name\":\"79gOPP\",\"tel\":\"19994779494\"}," "{\"name\":\"test21\",\"tel\":\"13157127478\"},{\"name\":\"test21testC\",\"tel\":\"13787128224\"}]" } s = Sign() new_data = s.signfun(data) print new_data print datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f') response = requests.post(url=url, headers=headers, data=new_data, verify=False) print datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f') print response if 200 == response.status_code: str_content = response.content dict_content = json.loads(str_content) print 'response:', str_content.decode("unicode-escape")