- 本项目仅供学习研究,禁止商用!
- 可指定医生
- 可指定就诊人
- 可指定挂号时间
- 定时挂号
- 代理刷号
- 自定义刷号起始日期
- 刷号失败重试
-
搭建Java运行环境,最低版本支持1.8
-
下载
91160-cli.jar
,下载地址 -
初始化配置
$ java -jar 91160-cli.jar init
- 查看配置
# 91160账号
userName=[your userName]
# 91160密码
password=[your password]
# 就诊人编号
memberId=[your memberId]
# 城市编号
cityId=5
# 医院编号
unitId=21
# 大科室编号
bigDeptId=1
# 小科室编号
deptId=556
# 医生编号
doctorId=1690
# 需要周几的号[可多选,如(6,7)]
weeks=6,7
# 时间段编号[可多选,如(am,pm)]
days=am,pm
# 刷号休眠时间[单位:毫秒]
sleepTime=5000
# 刷号起始日期(表示刷该日期后一周的号,为空取当前日期)[格式: 2022-06-01]
brushStartDate=
# 是否开启定时挂号[true/false]
enableAppoint=false
# 定时挂号时间[格式: 2022-06-01 15:00:00]
appointTime=
# 是否开启代理[true/false]
enableProxy=false
# 代理文件路径[格式: /dir/proxy.txt]
proxyFilePath=proxy.txt
# 获取代理方式[ROUND_ROBIN(轮询)/RANDOM(随机)]
proxyMode=ROUND_ROBIN
- 开始挂号
$ java -jar 91160-cli.jar register -c config.properties
- 查看日志
2022-05-26 00:22:12.152 INFO - --> GET https://user.91160.com/login.html
2022-05-26 00:22:12.488 INFO - <-- 200 OK https://user.91160.com/login.html (332ms, unknown-length body)
2022-05-26 00:22:12.549 INFO - --> POST https://user.91160.com/login.html (467-byte body)
2022-05-26 00:22:13.243 INFO - <-- 302 Found https://user.91160.com/login.html (692ms, unknown-length body)
2022-05-26 00:22:13.244 INFO - --> GET https://www.91160.com/client/login.html
2022-05-26 00:22:15.087 INFO - <-- 302 https://www.91160.com/client/login.html (1842ms, unknown-length body)
2022-05-26 00:22:15.088 INFO - 挂号开始
2022-05-26 00:22:15.096 INFO - $.sch.1699.am.4
2022-05-26 00:22:15.096 INFO - $.sch.1699.am.5
2022-05-26 00:22:15.097 INFO - $.sch.1699.am.6
2022-05-26 00:22:15.097 INFO - $.sch.1699.am.0
2022-05-26 00:22:15.097 INFO - $.sch.1699.pm.4
2022-05-26 00:22:15.097 INFO - $.sch.1699.pm.5
2022-05-26 00:22:15.097 INFO - $.sch.1699.pm.6
2022-05-26 00:22:15.097 INFO - $.sch.1699.pm.0
2022-05-26 00:22:15.098 INFO - 努力刷号中...
2022-05-26 00:22:15.255 INFO - --> GET https://gate.91160.com/guahao/v1/pc/sch/dep
2022-05-26 00:22:16.006 INFO - <-- 200 https://gate.91160.com/guahao/v1/pc/sch/dep (750ms, unknown-length body)
2022-05-26 00:22:16.089 INFO - {"left_num":1,"schedule_id":"628c7442687bcb522d0d4fcd","time_type":"am"}
2022-05-26 00:22:16.090 INFO - --> GET https://user.91160.com/member.html
2022-05-26 00:22:16.620 INFO - <-- 200 OK https://user.91160.com/member.html (529ms, unknown-length body)
2022-05-26 00:22:16.652 INFO - --> GET https://www.91160.com/guahao/ystep1/uid-21/depid-556/schid-628c7442687bcb522d0d4fcd.html
2022-05-26 00:22:17.545 INFO - <-- 200 https://www.91160.com/guahao/ystep1/uid-21/depid-556/schid-628c7442687bcb522d0d4fcd.html (892ms, unknown-length body)
2022-05-26 00:22:17.630 INFO - --> POST https://www.91160.com/guahao/ysubmit.html (1534-byte body)
2022-05-26 00:22:19.385 INFO - <-- 302 https://www.91160.com/guahao/ysubmit.html (1755ms, unknown-length body)
2022-05-26 00:22:19.387 INFO - --> GET https://www.91160.com/guahao/ysuccess/yuyue_id-436015454.html
2022-05-26 00:22:20.615 INFO - <-- 200 https://www.91160.com/guahao/ysuccess/yuyue_id-436015454.html (1228ms, unknown-length body)
2022-05-26 00:22:20.620 INFO - 挂号成功
2022-05-26 00:22:20.620 INFO - 挂号结束
- 新建
proxy.txt
文件 - 写入代理信息,格式:
(http|socks)@ip:port
,每行一条
http@127.0.0.1:1087
socks@127.0.0.1:1086
- 编辑配置文件
config.properties
,开启并配置代理文件路径
# 是否开启代理[true/false]
enableProxy=true
# 代理文件路径[格式: /dir/proxy.txt]
proxyFilePath=[代理文件路径]
# 获取代理方式[ROUND_ROBIN(轮询)/RANDOM(随机)]
proxyMode=ROUND_ROBIN
- 当开启代理后,在循环刷号时会从代理文件中随机选取一条代理,并通过该代理发起请求
- 打开终端,先运行命令:
chcp 65001
,设置编码为UTF-8
; - 执行jar时加入
-Dfile.encoding=utf-8
,即java -Dfile.encoding=utf-8 -jar 91160-cli.jar init|register
; - 终端不要用
powershell
,要用cmd.exe
;
加群备注91160
如果您觉得91160-cli
对你有帮助,可以请作者喝杯咖啡哦~