Documentation
¶
Index ¶
- Constants
- Variables
- func InitLogger(output int) error
- func OpenFile(filename string, mode os.FileMode) *os.File
- func ReadData(f *os.File) ([]string, error)
- func WriteData(f *os.File, data string) error
- type Builder
- type FastData
- type FastHttp
- type HCaptcha
- type NetData
- type NetHttp
- type Proxy
- type Requester
- type V2
- type V3
Constants ¶
View Source
const ( Console = 0 File = 1 Both = 2 )
Variables ¶
View Source
var Logger zerolog.Logger
Functions ¶
Types ¶
type FastData ¶
type FastHttp ¶
type HCaptcha ¶
type HCaptcha struct {
ClienKey string `json:"clientKey,omitempty"`
TaskType struct {
Type string `json:"type,omitempty"`
WebsiteURL string `json:"websiteURL,omitempty"`
WebsiteKey string `json:"websiteKey,omitempty"`
IsInvisible bool `json:"isInvisible,omitempty"`
Data string `json:"data,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
Cookies string `json:"cookies,omitempty"`
} `json:"task,omitempty"`
}
func (*HCaptcha) SolveCaptcha ¶
type Proxy ¶
func GetProxies ¶
type V2 ¶
type V2 struct {
ClienKey string `json:"clientKey,omitempty"`
TaskType struct {
Type string `json:"type,omitempty"`
WebsiteURL string `json:"websiteURL,omitempty"`
WebsiteKey string `json:"websiteKey,omitempty"`
ReDataSValue string `json:"recaptchaDataSValue,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
Cookies string `json:"cookies,omitempty"`
} `json:"task,omitempty"`
}
type V3 ¶
type V3 struct {
ClienKey string `json:"clientKey,omitempty"`
TaskType struct {
Type string `json:"type,omitempty"`
WebsiteURL string `json:"websiteURL,omitempty"`
WebsiteKey string `json:"websiteKey,omitempty"`
MinScore float32 `json:"minScore,omitempty"`
PageAction string `json:"pageAction,omitempty"`
} `json:"task,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.