Python学起来-steal❀er

# exec [pip install requests] in python folder before import requests
import requests
api = 'https://mxgh.dundashi.com.cn/api/v3/guild/steal'
headers={
    'Host': 'mxgh.dundashi.com.cn',
    'charset': 'utf-8',
    'Accept-Encoding': 'gzip',
    'Connection': 'Keep-Alive',
    'Content-Length': '66',
    'Accept': 'application/json, text/javascript, */*; q=0.01',
    # 'Origin': 'http://usedcar.auto.sina.com.cn',
    # 'X-Requested-With': 'XMLHttpRequest',
    # "Cookie":"XXXXX",
    'User-Agent': 'Mozilla/5.0 (Linux; Android 6.0; Le X620 Build/HEXCNFN5902606111S; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.143 Crosswalk/24.53.595.0 XWEB/256 MMWEBSDK/21 Mobile Safari/537.36 MicroMessenger/6.6.7.1321(0x26060739) NetType/WIFI Language/en MicroMessenger/6.6.7.1321(0x26060739) NetType/WIFI Language/en',
    # 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    'content-type': 'application/json',
    'Referer': 'https://servicewechat.com/wx25d390e1124838a6/30/page-frame.html',
    'Accept-Encoding': 'gzip, deflate',
    'Accept-Language': 'zh-CN,zh;q=0.8',
}

for index in range(1000):
    print("steal *",index)
    payload='{"openid":"TWprd09ERXllWEZqYlhoemMweGpTa3d4YkRocWJteEQ=","mid":'+str(index)+'}'
    res = requests.post(api, data=payload, headers=headers)
    d = res.content.decode("utf-8")
    print(d)


Python学起来-steal❀er_第1张图片
pip-install-requests.jpg
Python学起来-steal❀er_第2张图片
post.jpg

你可能感兴趣的:(Python学起来-steal❀er)