Code Monkey home page Code Monkey logo

bjguahao's Introduction

北京市预约挂号统一平台脚本(Python3)

  • This is a fork of the bjguahao.

  • 目前还在调试中,没有稳定的版本,欢迎吐槽和试用

环境

  • python3

  • pip3 install requests

配置文件

  • config.json写入如下数据:
{
    "username": "130********",
    "password": "******",
    "dutyDate": "2017-10-18",
    "hospitalId": "142",
    "departmentId": "200039602",
    "dutyCode": "1",
    "medicareCardId": "",
    "autoChoose": true
}
  • 配置项说明
key 是否必选 描述 备注
username 登录手机号
password 密码
dutyDate 挂号日期 为空时,自动挂最新一天
hospitalId 医院ID 如142-北医三院
departmentId 科室ID 如200039602-运动医学科
dutyCode 上午/下午 1-上午,2-下午
medicareCardId 社保卡号 和身份证号一致,为空时,代表自费
autoChoose 系统自动选择医生 true-自动,false-手动,默认为true

文档

  • 医院ID和科室ID的获取

运行

  • python3 hospital_registration.py

调试

  • 运行时会在脚本目录下生成reg.log,这是一个较为详细的debug日志

致谢

  • 感谢 iBreaker 作出的贡献

  • 感谢 @lily0101 提供详细的 挂号攻略

  • 若有什么问题可以提Issues,或者在使用过程中有其他的问题及建议,或者想贡献代码,请加入交流群

协议

  • 基于 GPL-3.0 协议进行分发和使用,更多信息参见协议文件

    image

更新日志

  • 2017-10-18 v0.1.0: 支持挂指定专家的号,并且可选择在该专家没号时是否接受由系统分配的其他号源。

  • 2017-11-16 v0.2.0: 删除在配置中指定专家的功能,增加挂号时根据号源列表手动选择医生的功能。

  • 2017-12-13 v0.2.1: hospital_registration.py修改短信获取逻辑,针对有人退号的情况单独修改了一版捡漏脚本,以上改动都待测试

bjguahao's People

Contributors

wzhvictor avatar

Watchers

 avatar

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.