Skip to content

Quickstart

Install

pip install ChatECNU

Install CAPTCHA OCR support when needed:

pip install "ChatECNU[captcha]"

Prepare ChatEnv

ChatECNU registers the ChatEnv type ecnu.

chatenv list
chatenv init -t ecnu -I

Common variables:

ECNU_USERNAME=your account
ECNU_PASSWORD=your password

See ChatEnv Variables for the full schema.

CLI Smoke

ecnu --version
ecnu --tree
ecnu --tree-brief

Portal Smoke

ecnu home login -i
ecnu home info
ecnu home status
ecnu home user

Campus Network Smoke

ecnu net check --json
ecnu net ensure-login -I --allow-argv-password

check does not need a password. login / ensure-login do not pass passwords through external process argv by default. Use --allow-argv-password only after accepting local process-list exposure.