雨云自动签到脚本(已经失效)

命令行签到脚本

点头像→账户设置→API密钥

1
2
3
4
curl --location --request POST 'https://api.v2.rainyun.com/user/reward/tasks' \
--header 'x-api-key':'填你自己的kay' \
--header 'Content-Type: application/json' \
--data-raw '{"task_name": "每日签到"}'

如需自动签到到可把脚本添加到crontab

多账号签到

1
2
3
4
5
6
7
8
9
10
#!/bin/bash
keys=("key1" "key2")

for key in "${keys[@]}"
do
curl --location --request POST 'https://api.v2.rainyun.com/user/reward/tasks' \
--header "x-api-key: $key" \
--header 'Content-Type: application/json' \
--data-raw '{"task_name": "每日签到"}'
done

####python版

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import requests

# 定义一个包含所有密钥的数组
keys = [
"key1"
"key2"
]
#循环遍历所有密钥
for key in keys:
url = 'https://api.v2.rainyun.com/user/reward/tasks'
headers = {
'x-api-key': key,
'Content-Type': 'application/json'
}
data = {
'task_name': '每日签到'
}
response = requests.post(url, headers=headers, json=data)

if response.json()['code'] == 30011:
print("你可能已经签到过了")
if response.json()['code'] == 200:
print("签到成功")

雨云 邀请码:hc26

绑定微信获得5元优惠券注册链接:https://www.rainyun.com/hc26_/