Expand description
Lanzou (蓝奏云) share link resolver and account manager.
Includes public/password share resolve and control-panel APIs
(login / folder / file) ported from lanzou.class.php.
Structs§
- Account
- Logged-in Lanzou control-panel client.
- Client
- Lanzou HTTP client with simple cookie jar.
- Config
- Process-wide preferences.
- Convert
Meta - Parsed convert/raw metadata.
- Display
Entry - Display row after optional split-unescape grouping.
- File
Info - Parsed managed-file info (task=22).
- File
Note - Unified note schema written to file descriptions.
- Folder
Info - Scraped folder metadata.
- List
Entry - Folder or file list row.
- Parse
Options - Options for
Client::parse. - Parse
Result - Parsed share result.
- Part
Meta - Parsed part metadata.
- Upload
Part - One chunk of a split upload.
- Upload
Result - Result of a successful upload (single or multi-part).
Enums§
Constants§
- MASK
- Fixed mask recovered from challenge script (stable for current site family).
- NOTE_
VERSION - Note schema version.
- PERM
- Fixed 1-based permutation table from challenge script.
- VERSION
- Crate / CLI version (from Cargo.toml).
Functions§
- calc_
acw_ sc_ v2 - Compute
acw_sc__v2from server-issuedarg1. - clean_
share_ desc - config_
keys - Settable keys with short descriptions.
- config_
path_ used - Path used by the cache / last save.
- default_
config_ path - Default path:
$LANZOU_CONFIGor~/.lanzou/config.json. - extract_
arg1 - Extract
arg1from challenge HTML. - extract_
share_ description - Pull the “文件描述” field from a share page HTML (often entity-encoded JSON).
- format_
convert_ note - JSON convert note.
- format_
part_ note - JSON part note.
- format_
raw_ note - JSON note for an upload that did not convert the suffix.
- format_
split_ name - Build a part filename from template.
- get_
config - Process-wide cached config (loads once from default path).
- get_
config_ value - is_
acw_ challenge - Whether HTML looks like an acw challenge page.
- is_
upload_ allowed_ ext - Whether
ext(with or without leading.) is accepted by html5up.php. - load_
config - Load config from path (missing file → defaults).
- parse_
convert_ note - Convert or raw notes (raw treated as same-name convert for resolution).
- parse_
file_ note - Parse a v1 JSON note only (after HTML unescape).
- parse_
part_ note - save_
config - Save config to path, creating parent dirs.
- set_
config_ cache - Replace in-memory config (no disk write).
- set_
config_ value - solve_
from_ html - Return
(arg1, acw_sc__v2)from challenge HTML. - unescape_
list - Group split parts (via description notes) into virtual rows.