{"id":19261472,"url":"https://github.com/wangyihang/hit-courses-calendar","last_synced_at":"2025-06-15T13:07:32.986Z","repository":{"id":113353759,"uuid":"126025584","full_name":"WangYihang/HIT-Courses-Calendar","owner":"WangYihang","description":"哈尔滨工业大学教务处课表Excel转换iCal脚本","archived":false,"fork":false,"pushed_at":"2021-05-18T00:30:28.000Z","size":53,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T17:41:35.426Z","etag":null,"topics":["google-calendar","harbin-institute-of-technology","hit","scheduler","wechat"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WangYihang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-03-20T13:56:06.000Z","updated_at":"2025-01-02T01:11:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2854515-8ca0-452d-8ddb-15027834f1ed","html_url":"https://github.com/WangYihang/HIT-Courses-Calendar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WangYihang/HIT-Courses-Calendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangYihang%2FHIT-Courses-Calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangYihang%2FHIT-Courses-Calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangYihang%2FHIT-Courses-Calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangYihang%2FHIT-Courses-Calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WangYihang","download_url":"https://codeload.github.com/WangYihang/HIT-Courses-Calendar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangYihang%2FHIT-Courses-Calendar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259981465,"owners_count":22941148,"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":["google-calendar","harbin-institute-of-technology","hit","scheduler","wechat"],"created_at":"2024-11-09T19:27:06.703Z","updated_at":"2025-06-15T13:07:32.959Z","avatar_url":"https://github.com/WangYihang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"哈尔滨工业大学教务处课表 Excel 转换 cvs 脚本\n---\n\n#### Installation\n```\ngit clone https://github.com/WangYihang/ClassScheduleOfHIT.git\ncd ClassScheduleOfHIT\npip install -r requirements.txt\n```\n\n#### Usage:\n\n1. 登录教务处网站\n2. 查看课表，并导出课表为 excel\n3. 根据使用说明执行脚本  \n    * -i 为 excel 文件所在路径  \n    * -o 为输出 cvs 文件路径  \n    * -s 为本学期开始日期，格式为：年/月/日 （例如：2018/02/26）  \n    * `python main.py -i timetable.xls -o timetable.cvs -s 2018/02/26`    \n4. 执行成功后生成 cvs 文件，即可导入 Google Calendar 等日历管理工具\n\n```\nusage: main.py [-h] [-i INPUTFILE] [-o OUTPUTFILE] [-s SEMESTER]\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -i INPUTFILE, --inputfile INPUTFILE\n                        input file to convert\n  -o OUTPUTFILE, --outputfile OUTPUTFILE\n                        output file to save\n  -s SEMESTER, --semester SEMESTER\n                        semester start date, format: year/month/day, example:\n                        2018/02/26\n```\n\n#### Example:\n\u003e [timetable.cvs](timetable.cvs)\n```\nSubject,Start Date,Start Time,End Date,End Time,All Day Event,Description,Location,Private,\n软件构造, 2018-02-26, 08:00 AM, 2018-02-26, 09:45 AM, False, 徐汉川, 正心23, True\n软件构造, 2018-03-05, 08:00 AM, 2018-03-05, 09:45 AM, False, 徐汉川, 正心23, True\n软件构造, 2018-03-12, 08:00 AM, 2018-03-12, 09:45 AM, False, 徐汉川, 正心23, True\n软件构造, 2018-03-19, 08:00 AM, 2018-03-19, 09:45 AM, False, 徐汉川, 正心23, True\n软件构造, 2018-03-26, 08:00 AM, 2018-03-26, 09:45 AM, False, 徐汉川, 正心23, True\n软件构造, 2018-04-02, 08:00 AM, 2018-04-02, 09:45 AM, False, 徐汉川, 正心23, True\n软件构造, 2018-04-09, 08:00 AM, 2018-04-09, 09:45 AM, False, 徐汉川, 正心23, True\n软件构造, 2018-04-16, 08:00 AM, 2018-04-16, 09:45 AM, False, 徐汉川, 正心23, True\n软件构造, 2018-04-23, 08:00 AM, 2018-04-23, 09:45 AM, False, 徐汉川, 正心23, True\n...\n马克思主义基本原理, 2018-05-25, 01:45 PM, 2018-05-25, 03:30 PM, False, 彭华, 正心32, True\n马克思主义基本原理, 2018-06-01, 01:45 PM, 2018-06-01, 03:30 PM, False, 彭华, 正心32, True\n运筹学, 2018-02-27, 03:45 PM, 2018-02-27, 05:30 PM, False, 刘绍辉, 正心12, True\n运筹学, 2018-03-06, 03:45 PM, 2018-03-06, 05:30 PM, False, 刘绍辉, 正心12, True\n运筹学, 2018-03-13, 03:45 PM, 2018-03-13, 05:30 PM, False, 刘绍辉, 正心12, True\n运筹学, 2018-03-20, 03:45 PM, 2018-03-20, 05:30 PM, False, 刘绍辉, 正心12, True\n运筹学, 2018-03-27, 03:45 PM, 2018-03-27, 05:30 PM, False, 刘绍辉, 正心12, True\n运筹学, 2018-04-03, 03:45 PM, 2018-04-03, 05:30 PM, False, 刘绍辉, 正心12, True\n运筹学, 2018-04-10, 03:45 PM, 2018-04-10, 05:30 PM, False, 刘绍辉, 正心12, True\n运筹学, 2018-04-17, 03:45 PM, 2018-04-17, 05:30 PM, False, 刘绍辉, 正心12, True\n```\n\n#### Acknowledge\n\n珍惜、那时光 (提示时间表在不同时期会有微小变化)\n\n#### TODO\n- [x] 作息表在考试时期和实验时期会有变化，需要适配这种变化\n\n#### Reference:\n\u003e [将活动导入到 Google 日历](https://support.google.com/calendar/answer/37118?hl=zh-Hans)  \n\u003e [RFC 5545](https://tools.ietf.org/html/rfc5545)  \n\n#### License:\n```\n# THE DRINKWARE LICENSE\n# \n# \u003cwangyihanger@gmail.com\u003e wrote this file. As long as \n# you retain this notice you can do whatever you want \n# with this stuff. If we meet some day, and you think \n# this stuff is worth it, you can buy me the following\n# drink(s) in return.\n\nimport random\n\ndef thank(person):\n    person.drink(random.choice([\n        'Red Bull', \n        'JDB', \n        'Coffee', \n        'Sprite', \n        'Cola', \n        'Harbin Beer'\n    ]))\n\ndef main():\n    author = \"Wang Yihang\"\n    thank(anthor)\n\nif __name__ == \"__main__\":\n    main()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangyihang%2Fhit-courses-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangyihang%2Fhit-courses-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangyihang%2Fhit-courses-calendar/lists"}