[toc]
[MITM]
hostname = api.weibo.cn, m.weibo.cn
https://raw.githubusercontent.com/Sunert/Scripts/master/TaskConf/sina/surge.sgmodule
- 本地重写
[Script]
微博&钱包签到 = type=cron,cronexp=35 5 0 * * *,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js,script-update-interval=0
# 获取微博 Cookie.
微博签到 = type=http-request,pattern=https:\/\/api\.weibo\.cn\/\d\/users\/show,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
微博签到 = type=http-request,pattern=https:\/\/api\.weibo\.cn\/2\/logservice\/service,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
[Script]
新浪微博 = type=cron,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js,cronexpr="35 5 0 * * *",timeout=20,enable=true
https://raw.githubusercontent.com/Sunert/Scripts/master/TaskConf/sina/loon.plugin
- 本地重写
[Script]
cron "4 0 * * *" script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, enabled=true, tag=新浪微博
http-request https:\/\/api\.weibo\.cn\/\d\/users\/show script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, enabled=true, tag=新浪微博
http-request https:\/\/api\.weibo\.cn\/2\/logservice\/service script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, enabled=true, tag=新浪微博
[rewrite_remote]
https://raw.githubusercontent.com/Sunert/Scripts/master/TaskConf/sina/qx_rewite.txt
- 本地重写配置
[rewrite_local]
https:\/\/api\.weibo\.cn\/\d\/users\/show url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
https:\/\/api\.weibo\.cn\/2\/logservice\/service url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js
- 本地任务配置
[task_local]
1 0 * * * https://raw.githubusercontent.com/Sunert/Scripts/master/Task/weibo.js, tag=新浪微博
- 打开微博App,获取签到Cookie,获取后请注释或禁用Cookie
- 稍等或者刷新一下,获取用户信息Cookie(可选,增加显示个人任务红包余额)
Actions Secrets
| Name | 脚本相关YML | Value分割符 | 必须 / 可选 | 注意事项及样式(其中"xxx"代表任意字符) |
|---|---|---|---|---|
| WB_TOKEN | 微博 | #或换行 | 必须 | 请求地址: "https://api.weibo.cn/2/users/show", 签到token: uid=xxx&gsid=xxx&s=xxx |