{"id":13541739,"url":"https://github.com/Colorfulshadow/buaa_course_enrollment","last_synced_at":"2025-04-02T09:32:17.595Z","repository":{"id":194115441,"uuid":"690122969","full_name":"Colorfulshadow/buaa_course_enrollment","owner":"Colorfulshadow","description":"旨在自动化北京航空航天大学（BUAA）的课程选课过程。","archived":false,"fork":false,"pushed_at":"2023-09-11T16:52:24.000Z","size":376,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-03T07:32:24.263Z","etag":null,"topics":["buaa","course","enrollment","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Colorfulshadow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-11T15:16:16.000Z","updated_at":"2024-07-22T09:08:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"a716c595-0256-4d22-a912-024a4fee27d3","html_url":"https://github.com/Colorfulshadow/buaa_course_enrollment","commit_stats":null,"previous_names":["colorfulshadow/buaa_course_enrollment"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Colorfulshadow%2Fbuaa_course_enrollment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Colorfulshadow%2Fbuaa_course_enrollment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Colorfulshadow%2Fbuaa_course_enrollment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Colorfulshadow%2Fbuaa_course_enrollment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Colorfulshadow","download_url":"https://codeload.github.com/Colorfulshadow/buaa_course_enrollment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246788685,"owners_count":20834143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["buaa","course","enrollment","python"],"created_at":"2024-08-01T10:00:55.795Z","updated_at":"2025-04-02T09:32:17.289Z","avatar_url":"https://github.com/Colorfulshadow.png","language":"Python","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# BUAA Course Enrollment Automation\n\n## 简介\n\n**`buaa_course_enrollment.py`** 是一个专为北京航空航天大学（BUAA）设计的自动选课脚本。其主要功能是帮助学生在开放选课期间自动选择课程，减轻手动选课的负担和压力。脚本使用Python编写，结合了BeautifulSoup和requests库来实现自动登录和选课功能。\n\n### 主要功能\n\n- 自动登录北京航空航天大学的教务系统。\n- 根据用户输入的课程类型和课程代码自动选择课程。\n- 能够自动识别当前的学期，并根据学期修改相关参数。\n- 在成功选课前持续尝试选课，提高选课成功率。\n\n## 使用方式\n\n### 安装必要的库\n\n首先，确保你已经安装了Python和所需要的库：\n\n```bash\npip install -r requirements\n```\n\n### 配置脚本\n\n1. 打开`buaa_course_enrollment.py`文件。\n2. 修改脚本顶部的配置部分，填入你的账号、密码、课程类型、课程代码和对应序号。\n\n```python\nUSERNAME = '你的账号'\nPASSWORD = '你的密码'\nCOURSE_TYPE = '你要选择的课程类型'\nCOURSE_CODE = '你要选择的课程代码'\nSERIAL_CODE= '你要选择的课程序号'\n```\n\n对应下图，1、2、3分别为COURSE_TYPE（可以在代码`TYPE_DICT`中找到）、COURSE_CODE和SERIAL_CODE（从001开始）。例如，我希望选择该图中高胜杰老师的足球课，我将填写：\n\n```python\nCOURSE_TYPE = '体育'\nCOURSE_CODE = 'B2E333070'\nSERIAL_CODE= '003'\n```\n\n![sample](Sample/sample.png)\n\n### 运行脚本\n\n在脚本所在的目录打开终端或命令提示符，然后运行以下命令：\n\n```bash\npython buaa_course_enrollment.py\n```\n\n脚本将自动登录并开始尝试选课。成功选课后，它将退出。\n\n## 注意事项\n\n- 请确保在使用脚本之前已知晓并遵守北京航空航天大学的相关规定和政策。\n- 脚本仅用于教育和学习目的，请勿用于任何非法或不道德的用途。\n\n## 贡献\n\n如果你有任何改进或功能增加的建议，请通过Pull Request或Issue来贡献。\n\n## 许可\n\n该项目根据[GNU GENERAL PUBLIC LICENSE许可证](LICENSE)进行许可。\n\n## 特别感谢\n\n本项目参考了[Cauchy1412](https://github.com/Cauchy1412)的[BUAAGetCourse](https://github.com/Cauchy1412/BUAAGetCourse)。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FColorfulshadow%2Fbuaa_course_enrollment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FColorfulshadow%2Fbuaa_course_enrollment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FColorfulshadow%2Fbuaa_course_enrollment/lists"}