geektime

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GCID  = "GCID"
	GCESS = "GCESS"
)

Cookie names in geektime site

View Source
const (
	GeekBang             = "https://time.geekbang.org"
	GeekBangAccount      = "https://account.geekbang.org"
	GeekBangUniversity   = "https://u.geekbang.org"
	GeekBangCookieDomain = ".geekbang.org"
)

Domains in geektime site

View Source
const (
	// UserAgentHeaderName ...
	UserAgentHeaderName = "User-Agent"
	// OriginHeaderName ...
	OriginHeaderName = "Origin"
	// UserAgentHeaderValue ...
	UserAgentHeaderValue = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36"
)

Variables

View Source
var (
	// ErrGeekTimeRateLimit ...
	ErrGeekTimeRateLimit = errors.New("已触发限流, 你可以选择重新登录/重新获取 cookie, 或者稍后再试, 然后生成剩余的文章")
	// ErrAuthFailed ...
	ErrAuthFailed = errors.New("当前账户在其他设备登录或者登录已经过期, 请尝试重新登录")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL