import
requests
import
json
phone
=
"xxxxxxxxxxx"
url
=
"https://weixin.10010js.com/app/charge/qryRealFee"
headers
=
{
"Host"
:
"weixin.10010js.com"
,
"Content-Type"
:
"application/json"
,
"Cache-Control"
:
"no-cache"
,
"Content-Length"
:
"23"
,
"Accept"
:
"*/*"
,
"Referer"
:
"https://weixin.10010js.com/actPage/activity/index28.html?"
,
"Accept-Language"
:
"zh-cn"
,
"User-Agent"
:
"Mozilla/5.0 (Linux; U; Android 8.1.0; zh-cn; BLA-AL00 Build/HUAWEIBLA-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/8.9 Mobile Safari/537.36"
}
data
=
{
"phone"
: phone
}
req
=
requests.post(url, json.dumps(data), headers
=
headers)
money
=
int
(req.text)
/
100
print
(money)