-
Notifications
You must be signed in to change notification settings - Fork 0
/
mtV4.py
98 lines (84 loc) · 15.4 KB
/
mtV4.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# -*- coding:utf-8 -*-
# -------------------------------
# @Author : github@arvinsblog https://github.com/arvinsblog/deepsea
# @Time : 2024-10-1 13:10:56
# 收集和修复能用的脚本
# -------------------------------
"""
美团 外卖红包
自行捉包把meituan.com里面的token(一般在请求头里)填到变量 meituanCookie 中,
多账号换行或&隔开
export meituanCookie="AgGZYgsTHsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
cron: 59 0,9,17 * * *
const $ = new Env("美团领券");
"""
import requests
import re
import os
import time
#分割变量
if 'meituanCookie' in os.environ:
meituanCookie = re.split("@|&",os.environ.get("meituanCookie"))
print(f'查找到{len(meituanCookie)}个账号')
else:
meituanCookie = ['']
print('无meituanCookie变量')
#外卖
def waim(ck):
cookie = f"token={ck};"
headers = {"Cookie": cookie,
"X-Requested-With":"com.tencent.mm",
"Sec-Fetch-Site":"same-site",
"Sec-Fetch-Mode":"cors",
"Sec-Fetch-Dest":"empty",
"Content-Type":"application/json;",
"User-Agent":"Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36 XWEB/1160027 MMWEBSDK/20231105 MMWEBID/2247 MicroMessenger/8.0.44.2502(0x28002C37) WeChat/arm64 Weixin Android Tablet NetType/WIFI Language/zh_CN ABI/arm64 miniProgram/wxde8ac0a21135c07d"}
url = 'https://mediacps.meituan.com/gundam/gundamGrabV4?gdBs=&yodaReady=h5&csecplatform=4&csecversion=2.4.0'
data = {"gundamId":531693,"instanceId":"17211892932540.47486483758713405","actualLongitude":108938560,"actualLatitude":31805038,"needTj":False,"couponConfigIdOrderCommaString":"620969479,2189245219456,4298495230601,19537962926729,18884585587337,18276698358409,16307505791625,62530784070180,18774632104585,15298586739337,14306960212617,14314041377417,14316668846729,14315327914633,14306048017033,19404857475721,19699208618633,17136646619785,19202122187401,17260211208841,14673728045705,29350343345426,19531471061641,19201180107401,19695138112137,5513815065225,603844019,11983002534537,14684898984585,14686298178185,14407293272713,14686779867785,8650758750857,9285949325961,7458408104585,11980394594953,19483472822921,10385596023433,14578173543049,9137512120969,17800681685641,17802094051977,11131204469385,18416437363337,19473339646601,20046921138825,19737894257289,19713633550985,20446261150345,20501582447241,20101111087753,6080193102473,2430972598746,21425205740169,21421333283465,20326355698313,21792222151305,21792985055881,21794667037321,21792343196297,21792343130761,21792985449097,21792222282377,21792985383","couponAllConfigIdOrderString":"620969479,2189245219456,4298495230601,19537962926729,18884585587337,18276698358409,16307505791625,62530784070180,18774632104585,15298586739337,14306960212617,14314041377417,14316668846729,14315327914633,14306048017033,19404857475721,19699208618633,17136646619785,19202122187401,17260211208841,14673728045705,29350343345426,19531471061641,19201180107401,19695138112137,5513815065225,603844019,11983002534537,14684898984585,14686298178185,14407293272713,14686779867785,8650758750857,9285949325961,7458408104585,11980394594953,19483472822921,10385596023433,14578173543049,9137512120969,17800681685641,17802094051977,11131204469385,18416437363337,19473339646601,20046921138825,19737894257289,19713633550985,20446261150345,20501582447241,20101111087753,6080193102473,2430972598746,21425205740169,21421333283465,20326355698313,21792222151305,21792985055881,21794667037321,21792343196297,21792343130761,21792985449097,21792222282377,21792985383","ctype":"wxapp","platform":11,"app":-1,"h5Fingerprint":"eJztWFmP68aO/iuNfmjkwidtbdaSoHGh3bI2W9Z+cdHQvi/Wbl3Mf5/qc5JMgpmH+QGxHqo+FsUiaRbJ0n9el2R4/eUVfgfP67fXQYoBgjYIAmAaX3+BCQRDIQgh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yvs1PSTxQ/ZOaJOn/gBf0nhhvIOrGBdQWKrc7I86UtQicph1PL3Hk0+tj2xC+uT6CPejnmMzrMviUtU7er5jOvDAdD/4dXQEdiNKXZ4vxbiy2IPPCn5tBoiud/8O0+eLwHOisYUWL7CX+rJjQ0/LMhOFFY/T/R3UYrw2rIiyDjd0nQkqzes8eezSRB+EHdoC2JgdIRvtDcW8lA+oyzVbdA4u/P7ElghXojRSDscDjbg4ZV5e/+u/AcWfe7k=","appletAppid":"","appletExpoid":""}
b = requests.post(url=url,json=data,headers=headers).json()
print(f"获得{len(b['data']['allCoupons'])}张优惠券")
for sj in b['data']['allCoupons']:
print(f"{sj['couponName']}-{sj['amountLimit']}-{sj['couponAmount']}元-{sj['amountLimit']}-{sj['etime']}")
#团购
def tuangou(ck):
cookie = f"token={ck};"
headers = {"Cookie": cookie,
"X-Requested-With":"com.tencent.mm",
"Sec-Fetch-Site":"same-site",
"Sec-Fetch-Mode":"cors",
"Sec-Fetch-Dest":"empty",
"Content-Type":"application/json;",
"User-Agent":"Mozilla/5.0 (Linux; Android 14; 2201122C Build/UKQ1.230917.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36 XWEB/1160027 MMWEBSDK/20231105 MMWEBID/2247 MicroMessenger/8.0.44.2502(0x28002C37) WeChat/arm64 Weixin Android Tablet NetType/WIFI Language/zh_CN ABI/arm64 miniProgram/wxde8ac0a21135c07d"}
url = 'https://mediacps.meituan.com/gundam/gundamGrabV4?gdBs=&yodaReady=h5&csecplatform=4&csecversion=2.4.0'
data = {"gundamId":567871,"instanceId":"17236365795140.22172928381444668","actualLongitude":108938560,"actualLatitude":31805038,"needTj":False,"couponConfigIdOrderCommaString":"1819834260,1953473011,1893798091,1384683696,1137971534,1991988913,1651917378,1519357553","couponAllConfigIdOrderString":"1819834260,1953473011,1893798091","ctype":"wxapp","platform":11,"app":-1,"h5Fingerprint":"eJztWOmO4ziSfpVE/UjMwDWp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+wNkTi+J25Asv99a8eWSuXqFauUFcO/JQsDzVxwYNLxMidWCRkp+vzllYxZt6haTbh2cGb04qKmz4eN6KcZOXQhnJA1acncDvD+uUEoXdcloE5E2MlPKU4M5/qilAEbrp5uqM+n3ZiUaCX0TnY3WS1TLWnZzD9BGaW4D+GHdi9fZORTDUVtk2JMwZXXTL75I3FriOQ1mYUB+aQnEMGEKZ9MCGcqa9bkLc5FC+TOMPN9XyKN+N1L72MCTQgZQJszyzZJxsobvR0bmgHO7s8geOEN9zS2x4nC3djRVeV4KOYoGw7djlwkA9nVVv97DqTd1lIYxy9ZHpzRJ9yat9B66Hi95hyyAseyPA2yAmegC1xn7BlBWPD6YKRSq19jeYr1MvCzctBnfCA2D1udhAf0fKoY0Hdrs31SXNLS8zgIlZAEL+uEP/9PyGbhu4=","appletAppid":"","appletExpoid":""}
b = requests.post(url=url,json=data,headers=headers).json()
print(f"获得{len(b['data']['allCoupons'])}张优惠券")
for sj in b['data']['allCoupons']:
print(f"{sj['couponName']}-{sj['amountLimit']}-{sj['couponAmount']}元-{sj['amountLimit']}-{sj['etime']}")
def main():
z = 1
for ck in meituanCookie:
try:
print(f'登录第{z}个账号')
print('----------------------')
try:
print('-----外卖-----')
waim(ck)
print('-------------')
except Exception as e:
print('错误')
try:
print('-----团购-----')
tuangou(ck)
print('-------------')
except Exception as e:
print('错误')
print('----------------------')
z = z + 1
except Exception as e:
print('未知错误')
if __name__ == '__main__':
try:
main()
except Exception as e:
print('未知错误')