Documentation ¶
Index ¶
- Constants
- func Base64DecodeString(src string) (dst string, err error)
- func Base64EncodeBytes(origin []byte) (result string)
- func Base64EncodeString(origin string, urlsafe bool) (result string)
- func CFEmailDecode(a string) (s string, err error)
- func CFScriptRedirect(url string) (string, error)
- func CheckInList(list []string, item string) bool
- func ContainChineseChar(str string) bool
- func GetCFEmailPayload(str string) string
- func GetColly() *colly.Collector
- func ProxyURL() func(*http.Request) (*url.URL, error)
- func ScriptGet(js string, varname string) (string, error)
- func ScriptReplace(js string, varname string) string
- type HttpClient
- type Options
Constants ¶
View Source
const UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15"
Variables ¶
This section is empty.
Functions ¶
func Base64DecodeString ¶
Base64DecodeString decodes base64 string to readable string
func Base64EncodeBytes ¶
func Base64EncodeString ¶
func CFEmailDecode ¶
Remove cloudflare email protection
func CFScriptRedirect ¶
Return full accessible url from a script protected url. If not a script url, return input
func CheckInList ¶
func ContainChineseChar ¶
func ScriptReplace ¶
Replace location with varname and remove window
Types ¶
type HttpClient ¶
func GetHttpClient ¶
func GetHttpClient() *HttpClient
Click to show internal directories.
Click to hide internal directories.