forked from Devilstore/Gladoscheckin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckin.py
More file actions
25 lines (20 loc) · 1.15 KB
/
checkin.py
File metadata and controls
25 lines (20 loc) · 1.15 KB
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
import requests
import json
import os
# -------------------------------------------------------------------------------------------
# github workflows
# -------------------------------------------------------------------------------------------
if __name__ == '__main__':
cookies = os.environ.get("GLADOS_COOKIES")
check_in_url = "https://glados.cloud/api/user/checkin" # 签到地址
status_url = "https://glados.cloud/api/user/status" # 查看账户状态
referer = 'https://glados.cloud/console/checkin'
origin = "https://glados.cloud"
useragent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"
payload = {
'token': 'glados.cloud'
}
checkin = requests.post(check_in_url, headers={'cookie': cookies, 'referer': referer, 'origin': origin,
'user-agent': useragent, 'content-type': 'application/json;charset=UTF-8'}, data=json.dumps(payload))
state = requests.get(status_url, headers={
'cookie': cookies, 'referer': referer, 'origin': origin, 'user-agent': useragent})