Git Product home page Git Product logo

hdu's Introduction

HDU 选课

简介

这是一个适用于杭州电子科技大学选课系统的选课脚本。该脚本使用 Python 编写,目前支持通识选修课模块的选课功能,体育课和普通理论课的选课功能正在计划中。

环境依赖

  • Python 3
  • Git

安装

git clone https://github.com/Cyrus97/HDU.git
cd HDU
pip install -r ./requirements.txt

配置文件

使用之前需要配置好项目下的 config.json 文件。

下面是对该配置文件的详细说明。

{
  "username": "学号",  // 数字杭电登录账号,即学号
  "password": "密码",  // 数字杭电密码
  // 把相关课程按照模板填入,课程名称和课程代码是必须要填的,其他的可以空着
  "courses": {
    "通识选修课": [
      {
        "课程名称": "国学雅集",
        "课程性质": "人文经典与人文修养",
        "课程归属": "通识选修一般课",
        "课程代码": "C1292016",
        "上课时间": ""
      },
      {
        "课程名称": "文学与人生",
        "课程性质": "人文经典与人文修养",
        "课程归属": "通识选修一般课",
        "课程代码": "C1292030",
        "上课时间": ""
      }
    ]
  },
  // 选课成功会发送邮件,如果留空则不会发送
  "from_email": "发送通知的邮箱",
  "from_email_psw": "发送通知的邮箱的密码",
  "to_email": "接收通知的邮箱",
  "delay": 5  // 选课频率,越小越快,无特殊要求不要更改
}   

快速开始

安装完成,配置完文件就可以愉快的运行了。

python ./run.py

问题

为了让大家都可以看到,有任何问题请提 issue。

TODO

  • 支持体育课,普通理论课
  • 支持多进程,每个进程进行不同种类的课程的选课

hdu's People

Contributors

cyrus97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hdu's Issues

封号

23 年打卡~现在用脚本是不是会被封号

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.