Documentation
¶
Overview ¶
Package lanzou resolves Lanzou (蓝奏云) public and password share links.
Features:
- public / password shares
- Alibaba WAF/ESA acw_sc__v2 cookie
- CDN pseudo-link resolution and risk-page fallback
- optional local download
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPasswordRequired = errors.New("password required for this share link")
)
Sentinel errors.
Functions ¶
func CalcAcwScV2 ¶
CalcAcwScV2 computes cookie value from arg1.
func CalcAcwScV2With ¶
CalcAcwScV2With allows custom mask/perm.
func ExtractArg1 ¶
ExtractArg1 extracts arg1 from challenge HTML.
func IsAcwChallenge ¶
IsAcwChallenge reports whether HTML is an acw challenge page.
func IsPasswordProtected ¶
IsPasswordProtected detects password share HTML.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds HTTP state (cookies) for a lanzou session.
type Options ¶
Options for Parse.
func DefaultOptions ¶
func DefaultOptions() Options
DefaultOptions returns options with ResolveDirect enabled.
Click to show internal directories.
Click to hide internal directories.