Coder Social home page Coder Social logo

bed_check_pika's Introduction

广州理工学院 查寝脚本

介绍

这是一个用于广州理工学院查寝的脚本,可以搭配其他工具自动完成查寝任务。

使用方法

账号密码是指统一身份验证系统的账号密码,账号为学号 ,默认密码为身份证后六位

⚠️ 警告: 使用此脚本前必须修改默认的密码。

  1. 下载本仓库所有文件,把所有文件放到一个文件夹中
  2. 安装Python3
  3. 进入文件夹,打开命令行
  4. 安装依赖 pip install -r requirements.txt
  5. 执行脚本 python main.py [-e|-c <config path>|-u <username> -p <password>]

参数说明:

-e,--env从环境变量中获取用户名和密码

-c,--config 读取配置文件获取用户名和密码

-u,--username命令行输入用户名

-p,--password命令行输入密码

优先级:-e>-c>-u

使用GitHub Actions自动查寝:

  1. 先fork本仓库,然后在仓库的Settings->Secrets中添加名为LOGIN_USERNAMELOGIN_PASSWORD的secret,分别存储用户名和密码。

    SETTING_STRING的secret用于存储json格式的查寝配置文件,格式如下:

    {
      "SPIDER_MAX_RETRY_TIMES": 3,
      "WECHAT_WARNING_URL": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=a80dfdx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "WECHAT_WARNING_PHONE": [
        "135xxxxx",
        "189xxxxx"
      ],
      "LOG_LEVEL": "INFO"
    }

    更多配置项请参考setting.py

    secrets.png

  2. 然后在仓库的Actions中手动运行,即可测试运行是否正常。 action.png

bed_check_pika's People

Contributors

cmjnb 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.