Giter Site home page Giter Site logo

yooc-auto-answer's Introduction

易班优课 (yooc.me) 自动答题

使用方法

执行所有操作前需要保证帐号不在考试中

整理现成的题库(可选)

可以接受的题库格式见下文说明

将题库转换为 txt 格式, 去除文档标题等(...题库/...单选题)内容, 置于 Question-Banks 文件夹中

运行 parse_question_banks_to_json.py 可以整理 txt,html 格式题库到 Question-Banks.json

重复测试以增加题库(可选)

config_template.py 文件更名为 config.py, 并配置, 运行 get_question_banks_by_repeating_exam.py 可以重复测试以向 Question-Banks.json 中增加题库

自动答题

运行 answer.py, 在网页中使用开发者工具, 复制其中任一网络请求的 cookies, 处理 cookies 适配 firefox, 若失败需要修改代码

说明

  • 需要题库或者不限测试次数

  • 可以接受的题库格式包括:

    23问题( ABC)
    A.选项
    B、选项
    ...
    
    23. 问题
    A、选项
    B、选项
    ...
    答案: ABC
    
    问题
    ( )选项
    (x) 选项
    [ ] 选项
    
    填空题问题问题(答案)问题问题
    
    • 要求在每道题之间有空行
    • 题目在一行内
    • 每个选项位于每行开头
    • 括号都成对
    • 奇怪的符号不影响

    对于填空题, 因为 txt 格式不能展示, 所以要使用工具将 docx,pdf 格式转换为 html, 再整理, 如果整理失败, 需要修改代码以匹配当前的 html

免责声明

下载, 使用脚本时均视为已经仔细阅读并完全同意以下条款:

  • 脚本仅供个人学习与交流使用,严禁用于商业以及不良用途
  • 使用本脚本所存在的风险将完全由其本人承担,脚本作者不承担任何责任
  • 本声明未涉及的问题请参见国家有关法律法规,当本声明与国家有关法律法规冲突时,以国家法律法规为准

yooc-auto-answer's People

Contributors

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