go 实现签到
./auto-sign -SERVER_ADDRESS="" -SERVER_CRON="" -SERVER_CONFIG=“”
代码实现 geekhub 的签到 首先需要一个原始的_session_id
cookie := make(map[string]string, 1)
cookie["_session_id"] = ""
geekhub := Geekhub{Cookies: cookie}
geekhub.Start()
代码实现appletuan的签到 首先需要一个原始的_session_id
tuan := AppleTuan{Cookies: map[string]string{
"_session_id": "",
}}
tuan.Start()
代码实现 ld 的签到
ld := LD{Username: "", Password: ""}
ld.Start()
代码实现 V2ex 的签到
params := make(map[string]string, 2)
params["PB3_SESSION"] = ""
params["A2"] = ""
v2 := V2ex{Cookies: params}
v2.Start()
需要Cookie中的v2
,PB3_SESSION
代码实现 ChinaG 自动签到
g := ChinaG{
"username",
"password",
}
_ = g.Start()
需要 username/password 即可
需要内容
host: 地址
protocol: 协议
port: 465 端口
username: 用户名
password: 密码
from_name: 类似昵称
to: 发送地址
需要内容
url: 地址
key: 密钥
具体请看 docker-compsoe
geekhub:
cookies:
_session_id:
appletuan:
cookies:
_session_id:
ld246:
user:
username:
password:
v2ex:
cookies:
PB3_SESSION:
A2:
famijia:
headers:
token:
blackBox:
deviceId:
chinaG:
user:
username:
password:
cron:
geekhub: "0 7 * * *"
appletuan: "40 7 * * *"
ld246: "5 0 * * *"
v2ex: "0 8 * * *"
famijia: "10 8 * * *"
chinag: "20 8 * * *"
message:
enabled: true
type: "bark"
bark:
url:
key:
mail:
host: "smtp.qq.com"
protocol: "smtp"
port: 465
username:
password:
from_name: "auto-sign"
to:
version: '3.1'
services:
auto-sign:
restart: always
image: hb0730/auto-sign:latest
environment:
- TZ=Asia/Shanghai
container_name: auto-sign
volumes:
- ./config:/app/config/
.
├── config
│ └── application.yml
├── docker-compose.yml
yaml/v1 在读取配置时大小写不区分 issues/1014