{"id":15433308,"url":"https://github.com/qin2dim/pigai_gpt2","last_synced_at":"2025-04-19T18:06:42.265Z","repository":{"id":42623042,"uuid":"307654188","full_name":"QIN2DIM/PigAI_GPT2","owner":"QIN2DIM","description":"批改网写作助手","archived":false,"fork":false,"pushed_at":"2022-05-21T13:04:17.000Z","size":10182,"stargazers_count":36,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-18T08:15:34.740Z","etag":null,"topics":["gpt-2","pigai","selenium-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QIN2DIM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-27T09:52:19.000Z","updated_at":"2024-10-07T03:42:14.000Z","dependencies_parsed_at":"2022-09-02T10:10:44.841Z","dependency_job_id":null,"html_url":"https://github.com/QIN2DIM/PigAI_GPT2","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QIN2DIM%2FPigAI_GPT2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QIN2DIM%2FPigAI_GPT2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QIN2DIM%2FPigAI_GPT2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QIN2DIM%2FPigAI_GPT2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QIN2DIM","download_url":"https://codeload.github.com/QIN2DIM/PigAI_GPT2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231583011,"owners_count":18395824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpt-2","pigai","selenium-python"],"created_at":"2024-10-01T18:33:22.961Z","updated_at":"2024-12-28T04:01:06.864Z","avatar_url":"https://github.com/QIN2DIM.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\n批改网写作助手，根据配置自动生成并提交英语作文。\n\n## Requirements\n\n- google-chrome\n- Python3.7+\n\n## Usage\n\n\u003e 项目依赖 google-chrome 运行，请确保你的计算机已装有谷歌浏览器。\n\n1. 拉取 PyPi Package\n\n   ```bash\n   pip install pigai-gpt2\n   ```\n\n2. 跨越次元的相遇\n\n   ```python\n   from typing import Union, List\n   \n   from pigai import runner\n   \n   # [√] 账号信息\n   username, password = \"\", \"\"\n   # [√] 作文号\n   pids: Union[str, List[str]] = [\"2107818\"]\n   # [*] 班级名全称 错误或不存在不影响程序运行\n   class_name: str = \"春田花花幼稚园\"\n   # [*] 文本词汇量 实际生成量会略多于此值\n   content_length: int = 200\n   \n   if __name__ == '__main__':\n       runner(\n           username=username,\n           password=password,\n           pids=pids,\n           class_name=class_name,\n           content_length=content_length,\n           save_action_memory=True,\n           check_result=True\n       )\n   \n   ```\n\n## Advanced\n\n1. 操作历史\n\n   首次运行后，可在工程目录下的 `database/action_history.csv` 中查看格式化的操作历史数据。\n\n2. 评测快照\n\n   首次运行后，程序会保存评测页面二点快照，可将页面中的所有富文本信息保存成 `.mhtml` 文件并存储在工程目录下的 `databse/paper_score/`。该格式文件可用主流的浏览器访问。\n\n3. 文本长度\n\n   在 `src/config.py` 文件中可修改变量 `TEXT_LENGTH` 的数值，其表示文章长度的左区间值，既文本生成后，文章长度会超过20 至 80 个词。`TEXT_LENGTH` 的默认值为 320。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqin2dim%2Fpigai_gpt2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqin2dim%2Fpigai_gpt2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqin2dim%2Fpigai_gpt2/lists"}