惠小助线报机器人为您实时提供全网最新羊毛活动线报网

翼支付 30-20 python 脚本

只要是让你充钱的100%都是骗子,切记不要充1分钱!

start time 是开始时间 记得改一下 2楼手机补图讲一下抓包

cookies全要抓包 填自己的import requests

from datetime import datetime

import time

# from bs4 import BeautifulSoup

url = "https://mapi.bestpay.com.cn/mapi/redbag/lifeGasStation/drawCoupon"

start_time = "2021-1-28 09:59:55"

sleeptime = 0.9

timeArray = datetime.strptime(start_time, "%Y-%m-%d %H:%M:%S")

def time_server():

#获得京东服务器时间

#r1 = requests.get('https://a.jd.com//ajax/queryServerData.html').json()['serverTime']

# 获取本地服务器的时间戳

r1 = time.time()*1000#获当前时间的时间戳

# 把时间戳格式/1000 获取毫秒

timeNum = int(r1) / 1000

# 格式化时间 (小数点后6为)

time1 = datetime.fromtimestamp(timeNum)

return time1

headers = {

"Host": "mapi.bestpay.com.cn",

"Connection": "keep-alive",

"Content-Length": "606",

"Accept": "application/json, text/plain, */*",

"Origin": "https://h5.bestpay.cn",

"User-Agent": "Mozilla/5.0 (Linux; Android 9; Redmi K20 Pro Premium Edition Build/PKQ1.190616.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.136 Mobile Safari/537.36 Bestpay/10.1.61 hybridVersion/3.0",

"Content-Type": "application/json;charset=UTF-8",

"Referer": "https://h5.bestpay.cn/subapps/bestpaymall-client-h5/january/main.html?isOutIn=true&hybridVersion=3.0&pageFrom=weijinwei",

"Accept-Language": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7",

"X-Requested-With": "com.chinatelecom.bestpayclient"

}

cookies = {

"loginChannel": "App",

"couponNo":

"token":

"keep":

"agreeId":

"timestamp":

"requestDate":

"fromchannelId":

"method":

"productNo":

"channel":

"loginNo":

"tradeChannel":

"traceLogId":

"sessionKey":

"appType":"",

"sign":

"getEncInfo":

}

#session = requests.post(url=url, headers=headers, json=cookies)

#print(session.text)

def refresh():

seconds = (time_server() - datetime.now()).microseconds

timedifference = 2-(seconds/1000000)

while True:

# 判断时间服务器时间是否大于或等于开始的时间

if datetime.now() >=timeArray:

time.sleep(timedifference-sleeptime)

session = requests.post(url=url, headers=headers, json=cookies)

print(session.text)

print(time_server())

#print(datetime.now())

print("任务开始")

for i in range(500):

time.sleep(0.1)

session = requests.post(url=url, headers=headers, json=cookies)

print(session.text)

print(time_server())

#print(datetime.now())

print("任务完成")

break

refresh()

print("-------------ok-------------")

文章标签:

微信公众号:赚客撸羊毛

最大线报网站