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 ReplaceChineseCharWith(str string, newStr string) string
- 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
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 ReplaceChineseCharWith ¶
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.