Giter VIP home page Giter VIP logo

91160-cli's Introduction

91160-cli

申明

  • 本项目仅供学习研究,禁止商用!

功能

  • 可指定医生
  • 可指定就诊人
  • 可指定挂号时间
  • 定时挂号
  • 代理刷号
  • 自定义刷号起始日期
  • 刷号失败重试

如何使用

  1. 搭建Java运行环境,最低版本支持1.8

  2. 下载91160-cli.jar下载地址

  3. 初始化配置

$ java -jar 91160-cli.jar init
  1. 查看配置
# 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
  1. 开始挂号
$ java -jar 91160-cli.jar register -c config.properties
  1. 查看日志
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 - 挂号结束

使用代理

  1. 新建proxy.txt文件
  2. 写入代理信息,格式: (http|socks)@ip:port,每行一条
  1. 编辑配置文件config.properties,开启并配置代理文件路径
# 是否开启代理[true/false]
enableProxy=true
# 代理文件路径[格式: /dir/proxy.txt]
proxyFilePath=[代理文件路径]
# 获取代理方式[ROUND_ROBIN(轮询)/RANDOM(随机)]
proxyMode=ROUND_ROBIN
  1. 当开启代理后,在循环刷号时会从代理文件中随机选取一条代理,并通过该代理发起请求

Q&A

Windows终端中文乱码如何解决?

  1. 打开终端,先运行命令:chcp 65001,设置编码为UTF-8
  2. 执行jar时加入-Dfile.encoding=utf-8,即java -Dfile.encoding=utf-8 -jar 91160-cli.jar init|register
  3. 终端不要用powershell,要用cmd.exe

加入群聊

加群备注91160

微信交流群

赞赏作者

如果您觉得91160-cli对你有帮助,可以请作者喝杯咖啡哦~

赞赏码

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.