来吧反正抢不到,狗洞抢券的代码,需要python环境

原创 手机做任务赚零花项目  2018-06-11 17:00 

【推荐】:任务赚钱app:悬赏猫(补充:刷Q币是假的,Q币绝对刷不了!

悬赏猫,可以通过任务赚钱,秒提微信红包。用户可点击链接注册下载悬赏猫

http://www.nnzhuan.com/s/xuanshangmao.html

小编悬赏猫的收款图:

手机任务赚钱app趣闲赚

用户可点击链接注册下载

http://www.nnzhuan.com/s/quxianzhuan.html

cookie获取方法,chrome 开发者模式,登陆京东mobile的页面,在network里面登陆找到登陆链接,里面会有cookie串,替换xxxxxx就可以了

import sys
import io
from urllib import request

#浏览器登录后得到的coockie
cookie_str = r'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

#把cookie字符串处理成字典,以便接下来使用
cookies = {}
for line in cookie_str.split(';'):
key, value = line.split('=', 1)
cookies[key] = value

#设置请求头
headers = {'User-agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36'}

#提取好的抢券链接,自定替换
url2 = 'https://s.m.jd.com/activemcenter/mfreecoupon/getcoupon?key=e06a381be3c04c3f9f5aa71299de04a1&roleId=12201590'
url3 = 'https://3.cn/7OEfOlj?from=jdjr_f_pc_sj_2_mkt&jd_pop=d4aa9ccf-b467-48dc-b3ae-2fd0a2aaf9d0&abt=2'
url4 = 'https://api.m.jd.com/client.action?functionId=newBabelAwardCollection&body=%7B%22activityId%22%3A%222KYi8tMN4hP8pUs5qCDqQDWz7nzk%22%2C%22from%22%3A%22H5node%22%2C%22scene%22%3A%221%22%2C%22args%22%3A%22key%3D9e6e7ff836b044f5bda8f20476e5b192%2CroleId%3D12364664%22%2C%22platform%22%3A%223%22%2C%22orgType%22%3A%222%22%2C%22openId%22%3A%22-1%22%2C%22pageClickKey%22%3A%22Babel_Coupon%22%2C%22eid%22%3A%22WNKQMSVACMDW4HY36ZCZBIOH7DS472D2TCYWAIEZDV6IKMPDF3LHVLNH3WJ7ZMCJOVV7NN4I27RK3IYLGCSVEL5USY%22%2C%22fp%22%3A%223ce2360ed3a4a859431faf6edf8b57b2%22%2C%22shshshfp%22%3A%22b4123b502aae7e6143cfdb1fc5d3a8d9%22%2C%22shshshfpa%22%3A%22d8af7cca-d3b8-db9e-022e-e4efbb570079-1525393776%22%2C%22shshshfpb%22%3A%220d79374645c7b4a756c1a5001697a6c37947725dfcb6130375aeba971f%22%2C%22childActivityUrl%22%3A%22https%253A%252F%252Fpro.m.jd.com%252Fmall%252Factive%252F2KYi8tMN4hP8pUs5qCDqQDWz7nzk%252Findex.html%22%2C%22mitemAddrId%22%3A%22%22%2C%22geo%22%3A%7B%22lng%22%3A%22%22%2C%22lat%22%3A%22%22%7D%2C%22addressId%22%3A%22%22%2C%22posLng%22%3A%22%22%2C%22posLat%22%3A%22%22%2C%22focus%22%3A%22%22%2C%22innerAnchor%22%3A%22%22%7D&client=wh5&clientVersion=1.0.0&sid=8445646431649f29b9ab8d24802d5574&uuid=15239298212581670056587&area=&_=1528471714149&callback=jsonp2'

import datetime
import time
import numpy as np

#加入随机变量,防止规律点击。
while(1):
cur=datetime.datetime.now()
if cur.hour==9 and cur.minute==59 and cur.second==59 and cur.microsecond>=850000: #时间设置
print (cur)
for i in range(5):
resp = requests.get(url, headers = headers, cookies = cookies)
print(datetime.datetime.now(),' : ',resp.content.decode('utf-8'))
resp = requests.get(url2, headers = headers, cookies = cookies)
print(datetime.datetime.now(),' : ',resp.content.decode('utf-8'))
resp = requests.get(url4, headers = headers, cookies = cookies)
print(datetime.datetime.now(),' : ',resp.content.decode('utf-8'))
time.sleep(0.1+np.random.rand()/10)
break

复制代码
有没有网页前端之类的愿意一起交流交流的

本文地址:http://www.wyyzq.com/7176.html
关注我们:请关注一下我们的微信公众号:扫描二维码手机任务平台的公众号,公众号:heimaoseoer
版权声明:本文为原创文章,版权归 手机做任务赚零花项目 所有,欢迎分享本文,转载请保留出处!

评论已关闭!