GithubHelp home page GithubHelp logo

coursemonitor's Introduction

CQU选课状态监测

功能说明

该程序的目的是帮助CQU的同学及时捡课,它可以监测选课网中指定课程的状态,如果这些课程有剩余名额则立即发送邮件通知。 example

基本使用

step1: 配置Python环境

python3 -m venv .venv            # 创建一个虚拟环境
source .venv/bin/activate       # 激活虚拟环境
pip install -r requirements.txt # 安装依赖

step2: 编辑配置文件config.json,完善基本信息

{
    "username": "xxxxxx",           // 统一身份认证号或学号
    "password": "xxxxxx",           // 教务网登录密码
    "courseCode": [                 // 想要监测的课程号
        "IPC18004",
        "IPC18003",
        "IPC18002"
    ],
    "interval": 300,                // 查询间隔时间(单位秒)
    "sendEmail": "[email protected]",     // 发送通知的邮箱,以qq邮箱为例
    "sendEmailPassword": "xxxxxxxx",// 发送通知的邮箱密码(登录授权码) 
    "smtpHost": "smtp.qq.com",      // SMTP服务器地址,以qq邮箱为例
    "receiveEmail": "[email protected]"// 接收通知的邮箱,以gmail为例
}

step3: 启动脚本

python3 ./main.py

也可以使用nohup使其在后台运行

nohup python ./main.py > ./course-monitor.log 2>&1 &

coursemonitor's People

Stargazers

 avatar Jerry Tung avatar  avatar Qianchen Chen (陈芊辰) avatar Xiangyi avatar H4S2O8 avatar  avatar connor_yf avatar FallofFall avatar Rick Wayne avatar Yangyu Chen avatar Hagb (Junyu Guo 郭俊余) avatar Hanwei Li avatar

Watchers

Hagb (Junyu Guo 郭俊余) avatar Hao Wang avatar

Forkers

saladday

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.