GithubHelp home page GithubHelp logo

wr786 / pkupc-code-archiver Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 8.99 MB

便捷地存档您在北京大学计算概论编程网格上提交的代码!

License: Mozilla Public License 2.0

Python 98.85% Batchfile 1.15%
pkupc introduction-to-computing peking-university

pkupc-code-archiver's Introduction

PKUPC-Code-Archiver

便捷地存档您在北京大学计算概论A编程网格上提交的代码!

创作缘由

PKUPC-Code-Archiver主要是我在maintainKey-to-PKUPC时觉得每次都要复制我在编程网格上提交的代码再存到新建的.cpp文件里,单个的题也就算了,但是对于一整份作业题集,一个一个地去打开每个题目,点击提交历史,找到“我的”,然后打开最上面的“Passed”记录,实在是太烦了!

于是我便为了它写了个爬虫。

从此再也不用担心助教在作业中再放重复的习题!

使用方法

  1. pip install -r requirements.txt

  2. 启动目录下的HAJIMERU.bat,随后可能会跳出一个Chrome窗口,最小化即可,不用理睬。

  3. 在看到请输入您想要archive的题集的url:这句话后,复制粘贴您想要archive的题集的url。

    比如,如果我想archivelxz班的第八次作业--函数与递归(1),那么我只需打开这个题集,并且复制地址栏中的http://162.105.86.10/programming/course/f6560de763094fc6b6e67cf385f45564/showProblemList.do?problemsId=9ae1dfceb663496aa623a2f48e5262d3并粘贴,敲下回车即可。

  4. 看到相应的提示时输入您的用户名和密码并敲下回车(放心,PKUPC-Code-Archiver没有采集您用户名和密码的功能)。

  5. 喝一口水,看到Chrome窗口在任务栏的图标消失之后,回到目录下的output文件夹中收获您的.cpp源码文件!

可能遇到的问题

  1. PKUPC-Code-Archiver需要您先安装好Python3Google Chrome

  2. 报错与chromedriver相关:如果错误信息提示的是“和Chrome版本不一致”的意思,请自行将chromedriver和Chrome更新成同一个版本。

pkupc-code-archiver's People

Contributors

wr786 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.