import requests

headers = { 'Host': 'm.client.10010.com', 'Cookie': 'MUT_S=android9; devicedId=839d3b8703c3499b9242e1c4f44c98cf; c_version=android@10.0100; PvSessionId=202309231638255f273f2cf15b4dd882d8adb276e6d72c; acw_tc=6fb10c9c16954583040964732e786f4626356e74f1c924fd6205be19bd; u_type=11; login_type=01; u_account=18627939109; city=071|710|90155946|-99; d_deviceCode=862879973913555; random_login=0; cw_mutual=6ff66a046d4cb9a67af6f2af5f74c3212d76aad7ba05dc25c18316d7a803d694f9c2932ee93764264a91e32f9eeadae5840aa9a2c0775cc269ad01bbefc36175; c_mobile=18627939109; wo_family=0; u_areaCode=', 'pragma': 'no-cache', 'cache-control': 'no-cache', 'accept': 'application/json, text/plain, /', 'origin': 'https://img.client.10010.com', 'user-agent': 'Mozilla/5.0 (Linux; Android 9; TAS-AN00 Build/PI; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/68.0.3440.70 Mobile Safari/537.36; unicom{version:android@10.0100,desmobile:18627939109};devicetype{deviceBrand:HUAWEI,deviceModel:TAS-AN00};{yw_code:}', 'content-type': 'application/x-www-form-urlencoded', 'referer': 'https://img.client.10010.com/yuliangchaxunsf/index.html', 'accept-language': 'zh-CN,en-US;q=0.9', 'x-requested-with': 'com.sinovatech.unicom.ui' }

data = { 'duanlianjieabc': '', 'channelCode': '', 'serviceType': '', 'saleChannel': '', 'externalSources': '', 'contactCode': '', 'ticket': '', 'ticketPhone': '', 'ticketChannel': '', 'userNumber': '', 'language': 'chinese' }

response = requests.post('https://m.client.10010.com/servicequerybusiness/operationservice/queryOcsPackageFlowLeftContentRevisedInJune', headers=headers, data=data) print(response.text)

使用 Python 模拟 HTTP 请求获取中国移动流量剩余信息

原文地址: http://www.cveoy.top/t/topic/bHMm 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录