forked from w1770946466/Auto_proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_link.py
42 lines (39 loc) · 1.45 KB
/
get_link.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
import re
import requests
import random, string
e_sub = []
#获取机场试用订阅
def get_sub_url():
V2B_REG_REL_URL = '/api/v1/passport/auth/register'
home_urls = (
'https://www.ckcloud.xyz',
'https://fastestcloud.xyz',
'https://user.bafang.vip',
'https://cloud.hhygj.xyz',
'https://feiniaoyun.top',
'https://www.dgycom.com',
)
times = 1
for current_url in home_urls:
i = 0
while i < times:
header = {
'Referer': current_url,
'User-Agent': 'Mozilla/5.0 (iPad; CPU OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Mobile/15E148 Safari/604.1',
'Content-Type': 'application/x-www-form-urlencoded',
}
form_data = {
'email': ''.join(random.choice(string.ascii_letters+string.digits) for _ in range(12))+'@gmail.com',
'password': 'autosub_v2b',
'invite_code': '',
'email_code': ''
}
try:
response = requests.post(current_url+V2B_REG_REL_URL, data=form_data,headers=header)
subscription_url = f'{current_url}/api/v1/client/subscribe?token={response.json()["data"]["token"]}'
e_sub.append(subscription_url)
print(subscription_url)
except:
print("获取订阅失败")
i += 1
get_sub_url()