Code Monkey home page Code Monkey logo

pigai_gpt2's Introduction

Introduction

批改网写作助手,根据配置自动生成并提交英语作文。

Requirements

  • google-chrome
  • Python3.7+

Usage

项目依赖 google-chrome 运行,请确保你的计算机已装有谷歌浏览器。

  1. 拉取 PyPi Package

    pip install pigai-gpt2
  2. 跨越次元的相遇

    from typing import Union, List
    
    from pigai import runner
    
    # [√] 账号信息
    username, password = "", ""
    # [√] 作文号
    pids: Union[str, List[str]] = ["2107818"]
    # [*] 班级名全称 错误或不存在不影响程序运行
    class_name: str = "春田花花幼稚园"
    # [*] 文本词汇量 实际生成量会略多于此值
    content_length: int = 200
    
    if __name__ == '__main__':
        runner(
            username=username,
            password=password,
            pids=pids,
            class_name=class_name,
            content_length=content_length,
            save_action_memory=True,
            check_result=True
        )

Advanced

  1. 操作历史

    首次运行后,可在工程目录下的 database/action_history.csv 中查看格式化的操作历史数据。

  2. 评测快照

    首次运行后,程序会保存评测页面二点快照,可将页面中的所有富文本信息保存成 .mhtml 文件并存储在工程目录下的 databse/paper_score/。该格式文件可用主流的浏览器访问。

  3. 文本长度

    src/config.py 文件中可修改变量 TEXT_LENGTH 的数值,其表示文章长度的左区间值,既文本生成后,文章长度会超过20 至 80 个词。TEXT_LENGTH 的默认值为 320。

pigai_gpt2's People

Contributors

qin2dim avatar

Stargazers

 avatar 鶫ねこ avatar  avatar 甜檸Cirtron avatar  avatar  avatar  avatar  avatar Lin avatar  avatar 毛线啊锤子 avatar Nee avatar  avatar Wu Xiaoming avatar  avatar 周鑫 avatar Jay avatar Tuo Qiqi avatar  avatar  avatar  avatar  avatar  avatar  avatar LanHao avatar ueumd avatar  avatar  avatar Schwarzer avatar  avatar o0Freak0o avatar  avatar  avatar  avatar

Watchers

James Cloos avatar fonter.yang avatar  avatar

pigai_gpt2's Issues

您好,可以把开启步骤写详细一些嘛

您好,最近因为头疼批改网的作文无意间发现了您,也从一开始下载了python等软件,但还是不清楚怎么使用,driver都装好了,库也装好了,卡在最后一步不知道怎么办

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.