GithubHelp home page GithubHelp logo

fzttony / tsinghua-coursespider Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 1.0 1.21 MB

用于清华大学选课系统的爬虫及基于MS Excel的选课工具

License: GNU General Public License v3.0

Python 100.00%

tsinghua-coursespider's Introduction

Tsinghua-CourseSpider

用于清华大学选课系统的爬虫及基于MS Excel的选课工具

构成

OpeningInfo.py

核心文件,运行即爬去数据并存到OpeningInfo.xlsx中。

OpeningInfo.xlsx

存储开课信息的表格,结构基本与选课系统上的表格一致。

课表安排.xlsm

其中表课程信息内容通过MS Excel Query读取OpeningInfo.xlsx中的数据并添加课程ID字段。 在表课表中修改课程ID部分,自动填充其他内容。

使用方法

克隆本仓库,安装pandaslxml库。

  • 修改OpeningInfo.py
    • xq字段,根据需要爬取的学期修改
    • token字段,此字段值从浏览器的请求中抓包获取
    • headers中的Cookie字段,从浏览器请求中抓包获取 运行python OpeningInfo.py,待完成后即自动更新OpeningInfo.xlsx文件,课表安排.xlsm中的课程信息应当自动修改,按需要选课即可。

TODO

课表安排.xlsm添加VBA宏,使用更方便。

tsinghua-coursespider's People

Contributors

fzttony avatar rikakagurasaka avatar

Stargazers

 avatar

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.