Skip to main content

Some automatic scripts to against formalism

Project description

SG-Toolkit

使用科技手段对抗形式主义,提供了一些自动化脚本。能够帮助你完成网上学堂刷课、安全知识考试自动答题,等

怎么用?

网上学堂刷课

browser = FuckGWXT(
    "san.zhang",
    "1q2w!Q@W",
    "美国能源",
    "http://localhost/www/command/CollegeControl?flag=collegeTC&tcID=ef8afbf81de&tab=collTcLesson&type=&worktypeid=&pageNo1=15&pageSize1=10&comewho=null"
)
browser.process()

安全知识答题

代码示例

browser = FuckAnGui(
    "san.zhang",
    "1qaz@WSX",
    "http://localhost/comlogin/routeLogin.html",
    "./题库.xlsx"
)
browser.process()

题库格式

题型题干选项答案
单选题你今天吃的什么早点?A-豆浆|B-八宝粥|C-胡辣汤|D-肉夹馍A
多选题你今天吃的什么早点?A-豆浆|B-八宝粥|C-胡辣汤|D-肉夹馍BCD
判断题今天的早点有豆浆A-正确|B-错误A
  1. 表格必须包含题型题干选项答案四列
  2. 题型只能包含单选题多选题判断题
  3. 每个选项使用单竖线|分隔,并且按照A-选项类似格式书写。判断题选项内容固定为A-正确|B-错误
  4. 答案列有且仅有大写字母

注意事项

第一次运行程序必定失败,在弹出的窗口输入用户名、密码、验证码,点击登录,浏览器将自动保存登录信息。下次运行即可自动答题。

环境要求

  • Chrome浏览器
  • Chrome WebDriver(版本需与浏览器保持一致)
  • Python
  • Python第三方库(见requirements.txt

更新日志

版本号更新内容更新日期
0.1.0初始化项目2026年7月13日
0.2.0项目更名为SG-Toolkit2026年7月14日
0.2.1修复安全知识答题截止到99题的BUG2026年7月14日
0.2.2安全知识自动答题完成后显示成绩2026年7月14日
0.2.3In sg_toolkit.gkpt.FuckAnGui change Chrome user-data-dir to use current working directory (os.getcwd()) for per-user cache. Replace fragile regex-based bg-size check in exam() with a deterministic counter loop (i from 0 to 99) and increment it each iteration to avoid potential infinite loops while keeping existing submit behavior.2026年7月14日

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

sg_toolkit-0.2.4.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sg_toolkit-0.2.4-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file sg_toolkit-0.2.4.tar.gz.

File metadata

  • Download URL: sg_toolkit-0.2.4.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for sg_toolkit-0.2.4.tar.gz
Algorithm Hash digest
SHA256 66ab14a56c1fb2e536d897a971883176944cbafdd3fb3ccd6be59b2682f97b25
MD5 467c2ee4039fd2c03c622d2412b4c02f
BLAKE2b-256 aa1f6d023014d2e7f7aeb92345d487203b40549851f6c6d7deedbd586ef3e343

See more details on using hashes here.

File details

Details for the file sg_toolkit-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: sg_toolkit-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for sg_toolkit-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8e8113da6c4b3fdb7322186c408c6d89e26a73e264b9277584a525ca798557ea
MD5 279034fc30832199a20242f9624e12ef
BLAKE2b-256 b352a79094584159036f837f3ae879f34a2e93e23cf0311f0fabc7afa52787a9

See more details on using hashes here.

Supported by

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