Skip to main content

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

Project description

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。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pigai-gpt2-0.0.3.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

pigai_gpt2-0.0.3-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file pigai-gpt2-0.0.3.tar.gz.

File metadata

  • Download URL: pigai-gpt2-0.0.3.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for pigai-gpt2-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5547f7b43cf654e8eeffc77446a15ee7572302f478b1c23d37e97e84797be07a
MD5 712d05de9e49fccf14738dd077fcc640
BLAKE2b-256 a8ebfcae7c3e9f41eda19d21e2e0baa5a657f67e3e26aaec207f8a7f460a4964

See more details on using hashes here.

File details

Details for the file pigai_gpt2-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pigai_gpt2-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for pigai_gpt2-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4e0565b0f92121514579c535fb75931d5dc14af0184f0340cace7dbcc8772d77
MD5 ef4a520d2fe3a8953b460b65d1fccff0
BLAKE2b-256 40a2b1eb2a4f0fc57b93ac05d003b7c791d0ad6c0b14319ec1474fb08b21fe70

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page