找回密码
 加入慢享
猜你喜欢
旅行常客论坛

undefined

[复制链接]
发表于 2022-1-24 15:00:00 | 显示全部楼层 |阅读模式
本帖最后由 神圣使者 于 2022-1-24 16:38 编辑
  1. import requests
  2. from time import sleep
  3. import json
  4. import datetime
  5. import re
  6. from difflib import *
  7. import random
  8. import os
  9. import configparser
  10. try:
  11.     from notify import send
  12. except:
  13.     print("无推送文件")
  14.      
  15. #------------------------------农夫任务----------------------
  16. requests.packages.urllib3.disable_warnings()
  17. tztoken=´´#[url]http://pushplus.hxtrip.com/[/url]获取通知token,仅用户通知助力结果中是不是含有金虎水,我没用过...没通知了可能是结果里面没金虎水或者我也不知道干嘛了...
  18. wxid={´b´:[´user_id=WXXXXXXXXXXXX1600711680´,
  19.            ´user_id=WXXXXXXXXXXXX1600711680´,
  20.            ´user_id=WXXXXXXXXXXXX1600711680´,
  21.            ´user_id=WXXXXXXXXXXXX1600711680´,
  22.            ´user_id=WXXXXXXXXXXXX1600711680´,
  23.            ´user_id=WXXXXXXXXXXXX1600711680´,
  24.            ´user_id=WXXXXXXXXXXXX1600711680´]}
  25. qdurl=´https://nongfuwaterpro.kifa.site/api/v1/goldtiger/usersign´
  26. fwurl=´https://nongfuwaterpro.kifa.site/api/v1/goldtiger/userviewshop´
  27. gkurl=´https://nongfuwaterpro.kifa.site/api/v1/goldtiger/userviewvideo´
  28. zlurl1=´https://nongfuwaterpro.kifa.site/api/v1/goldtiger/specialuserassistance´
  29. zlurl2=´https://nongfuwaterpro.kifa.site/api/v1/goldtiger/completeassistancetask´
  30. rwhea={"Host":"nongfuwaterpro.kifa.site","Connection":"keep-alive","Content-Length":"48","content-type":"application/x-www-form-urlencoded","unique_identity":"95bfa1bc-e0c3-4e14-878c-eacae997b863","actcode":"ACT39912445427025182721600711680","Accept-Encoding":"gzip,compress,br,deflate","User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.16(0x1800103f) NetType/WIFI Language/zh_CN","Referer":"https://servicewechat.com/wxd79ec05386a78727/43/page-frame.html"}
  31. cs=0
  32. while True:
  33.     try:
  34.         yhs=wxid[´b´][cs]
  35.         cs=cs+1
  36.     except:
  37.         print("共有用户:"+str(cs))
  38.         break
  39.     continue
  40. kscs=0
  41. zlcs=0
  42. while True:
  43.     try:
  44.         try:
  45.             zldata1=wxid[´b´][kscs]+´&assistance_´+wxid[´b´][zlcs+1]
  46.         except:
  47.             zldata1=wxid[´b´][kscs]+´&assistance_´+wxid[´b´][1]        
  48.         try:
  49.             zldata2=wxid[´b´][kscs]+´&assistance_´+wxid[´b´][zlcs+2]
  50.         except:
  51.             zldata2=wxid[´b´][kscs]+´&assistance_´+wxid[´b´][0]
  52.         zl1 = requests.post(headers=rwhea,url=zlurl1,data=zldata1,verify=False,timeout=3).json()
  53.         sleep(6)
  54.         zl2 = requests.post(headers=rwhea,url=zlurl1,data=zldata2,verify=False,timeout=3).json()
  55.         sleep(6)
  56.         print("用户:"+str(kscs+1)+"的助力结果"+str(zl1)+""+str(zl2)+"")
  57.         kscs=kscs+1
  58.         zlcs=zlcs+1
  59.     except:
  60.         print("助力任务运行结束")
  61.         break
  62.     continue
  63. kscs=0
  64. while kscs < cs:
  65.     qd = requests.post(headers=rwhea,url=qdurl,data=wxid[´b´][kscs],verify=False,timeout=3).json()
  66.     print("第"+str(kscs+1)+"个用户签到结果:"+str(qd)+"")
  67.     sleep(2)
  68.     fw = requests.post(headers=rwhea,url=fwurl,data=wxid[´b´][kscs],verify=False,timeout=3).json()
  69.     print("第"+str(kscs+1)+"个用户访问商城结果:"+str(fw)+"")
  70.     sleep(2)
  71.     gkdata=´url=https%3A%2F%2Fcdn.geement.com%2Fsfiles%2FNongFu%2FJinHuWater%2Fvideo.mov&´+wxid[´b´][kscs]
  72.     gk = requests.post(headers=rwhea,url=gkurl,data=gkdata,verify=False,timeout=3).json()
  73.     print("第"+str(kscs+1)+"个用户观看视频结果:"+str(gk)+"")
  74.     sleep(2)
  75.     zl3 = requests.post(headers=rwhea,url=zlurl2,data=wxid[´b´][kscs],verify=False,timeout=3).json()
  76.     print("第"+str(kscs+1)+"个用户助力领取结果:"+str(zl3)+"")
  77.     sleep(2)
  78.     zlurl3=´https://nongfuwaterpro.kifa.site/api/v1/goldtiger/assistancewinlogs?´+wxid[´b´][kscs]
  79.     zl4 = requests.get(url=zlurl3,timeout=3).json()
  80.     haojieguo=´金虎水´
  81.     zljg=str(zl4)
  82.     zljg2=haojieguo in zljg
  83.     if zljg2 == True:
  84.         print("第"+str(kscs+1)+"个用户可能中了金虎水")
  85.         try:
  86.             tzurl=´http://pushplus.hxtrip.com/send´
  87.             data={´token´:tztoken,´title´:´农夫任务´,´content´:´助力结果有金虎水,请留意!´,´template´:´html´}
  88.             headers={
  89.                 "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Html5Plus/1.0",
  90.                 ´Content-Type´: ´application/json´}
  91.             tz=requests.post(headers=headers,url=tzurl,data=json.dumps(data))
  92.         except:
  93.             print("通知token不正确或我也不知道没用过这个推送反正就是出错了没通知...")
  94.         try:
  95.             send("第"+str(kscs+1)+"个用户助力结果中有金虎水","自行查看")
  96.         except:
  97.             print("无推送文件")
  98.     else:
  99.         print("第"+str(kscs+1)+"个用户助力结果中无金虎水"+"")
  100.     kscs=kscs+1
  101.     continue
  102. print("任务运行结束")
复制代码
回复

使用道具 举报

快速回复 返回顶部 返回列表