程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python crawler series get slider verification

編輯:Python

Python Reptile series' object slider verification

If you have any questions > Click here to communicate with me <

Please scan the QR code below for wechat

To maintain the green and healthy development of the network , Related encryption hidden , The code is for learning and communication only , Do not use for illegal purposes

Go straight to the code

import requests
import json
'''
Check the balance http://251.****.****:5689/query?appkey=wd115f12e21w&appsecret=1fd5ew1f55g
'''
def __get_gt():
for i in range(11):
headers = {

'Host': 'app.dewu.com',
'Connection': 'keep-alive',
'Content-Length': '387',
'AppId': 'wxapp',
'SK': 'N8dsv4EJaJ%2BWONlP1MiMhUHk6s1jeYT%2B7WuadNS%2BOvwLwKBGmsAvzQZk9GQ31fkV',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 MicroMessenger/7.0.9.501 NetType/WIFI MiniProgramEnv/Windows WindowsWechat',
'Wxapp-Login-Token': '',
'appVersion': '4.4.0',
'content-type': 'application/json',
'platform': 'h5',
'sks': '1,hdw1',
'Referer': 'https://servicewechat.com/wx3c12cdd0ae8b1a7b/261/page-frame.html',
}
data = '{"data":"k8L7gcSXVstBfaLl1I9IB4QtH3e6OmpN3tUTA+LsaprfQ97n3g4PezyMOQQz1RClZKMGHhhK34uUMkOvPt3RFA==BF048A364D2EA11EFC3C7B86B09553F510AFE2CFF4673138B9575AE06F95363D3D31E351DBC8AA845A3C2C0BA84FF544D620662F7F657D764BD06DBBC30A736CCD4EEF5810B5989F501379EB83115B90475D5F04C6EC15B9E397CBB108CB1505DA551F5587C0EEA91B75F1E8BC5BE20EF3E846DDBB484902433B3E6255A843C898E2755BD039835E0B5C203166E459BE"}'
url='https://app.dewu.com/api/v1/h5/index/fire/flow/product/detail'
response = requests.post(url, headers=headers,
data=data)
try:
print(response.json())
gt = response.json()['data']["gt"]
challenge = response.json()['data']["challenge"]
return gt, challenge,url
except Exception as e:
pass
gt, challenge,referer=__get_gt()
url='http://251.****.****:5689/doValid'
appkey = "wd115f12e21w"
data={

'gt': gt,
'challenge': challenge,
'appkey': appkey
}
json_data=requests.get(url, params=data).json()
print(json_data)

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved