Skip to main content

Crate lanzou_share

Crate lanzou_share 

Source
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.
ConvertMeta
Parsed convert/raw metadata.
DisplayEntry
Display row after optional split-unescape grouping.
FileInfo
Parsed managed-file info (task=22).
FileNote
Unified note schema written to file descriptions.
FolderInfo
Scraped folder metadata.
ListEntry
Folder or file list row.
ParseOptions
Options for Client::parse.
ParseResult
Parsed share result.
PartMeta
Parsed part metadata.
UploadPart
One chunk of a split upload.
UploadResult
Result of a successful upload (single or multi-part).

Enums§

EntryKind
Entry type: folder or file.
Error

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__v2 from server-issued arg1.
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_CONFIG or ~/.lanzou/config.json.
extract_arg1
Extract arg1 from 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.

Type Aliases§

Result