GithubHelp home page GithubHelp logo

1970633640 / ustc-timetable-to-ics Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 4.0 11 KB

USTC timetable to calendar ics file **科学技术大学教务课程表转换日历ics文件

Python 100.00%
python3 ics calendar ustc

ustc-timetable-to-ics's Introduction

USTC-timetable-to-ics

USTC timetable to calendar ics file **科学技术大学教务课程表转换日历ics文件 有了ics文件,可以导入到win10日历、Google日历、outlook日历等等……

使用方法

登录教务系统后(研究生、本科生),在浏览器开启F12调试窗口后打开https://jw.ustc.edu.cn/for-std/course-table,在调试窗口找到一个含有选课信息、个人信息、上课时间的返回结果(返回的是json),将返回内容文本复制到json_version.py文件目录下的1.json中, 然后修改py文件中学期第一周星期一前面一天(星期日)的日期,最后运行json_version.py,输出的ics就是日历文件。

怎么导出到……

win10日历、outlook可以直接导入 Google日历网页版直接上传ics导入不行要通过网址添加,例如可以把ics文件托管在github pages上然后在Google日历中添加(这样无法添加到主日程表)。如果需要配合安卓勿扰功能,需要用手机版Google日历APP打开ics文件并导入。

ustc-timetable-to-ics's People

Contributors

1970633640 avatar hexclover avatar jianggua avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

ustc-timetable-to-ics's Issues

日期错误

尽管教务系统显示课表的时候每周结尾是周日,但实际计算日期时,周日是位于每周开头的。教务系统的显示与实际课的时间并不符合直觉。

比如本周日国庆调休上课,教务系统会把这个周日的加课显示在下一周的课表里,因为教务系统认为,“下一个周日”位于下周的开头,而我们认为这个周日位于本周的末尾。

您的程序忽略了这个小问题,导致周日的课整体偏移了一周的时间。。。

而且程序没有处理课时时间断开(某一周不上课)的情况。

当然这主要的原因还是教务系统太太太太太太太太垃圾了。。。

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.