批改网写作助手,根据配置自动生成并提交英语作文。
Project description
Introduction
批改网写作助手,根据配置自动生成并提交英语作文。
Requirements
- google-chrome
- Python3.7+
Usage
项目依赖 google-chrome 运行,请确保你的计算机已装有谷歌浏览器。
-
拉取 PyPi Package
pip install pigai-gpt2
-
跨越次元的相遇
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
-
操作历史
首次运行后,可在工程目录下的
database/action_history.csv
中查看格式化的操作历史数据。 -
评测快照
首次运行后,程序会保存评测页面二点快照,可将页面中的所有富文本信息保存成
.mhtml
文件并存储在工程目录下的databse/paper_score/
。该格式文件可用主流的浏览器访问。 -
文本长度
在
src/config.py
文件中可修改变量TEXT_LENGTH
的数值,其表示文章长度的左区间值,既文本生成后,文章长度会超过20 至 80 个词。TEXT_LENGTH
的默认值为 320。
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5547f7b43cf654e8eeffc77446a15ee7572302f478b1c23d37e97e84797be07a |
|
MD5 | 712d05de9e49fccf14738dd077fcc640 |
|
BLAKE2b-256 | a8ebfcae7c3e9f41eda19d21e2e0baa5a657f67e3e26aaec207f8a7f460a4964 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e0565b0f92121514579c535fb75931d5dc14af0184f0340cace7dbcc8772d77 |
|
MD5 | ef4a520d2fe3a8953b460b65d1fccff0 |
|
BLAKE2b-256 | 40a2b1eb2a4f0fc57b93ac05d003b7c791d0ad6c0b14319ec1474fb08b21fe70 |