Documentation
¶
Index ¶
- Constants
- Variables
- type ComplexImageTask
- type ComplexImageTaskSolution
- type FunCaptchaTask
- func (t FunCaptchaTask) Validate() error
- func (t FunCaptchaTask) WithCookies(cookies string) userAgentAndCookies
- func (t FunCaptchaTask) WithProxyLogin(proxyLogin string) taskProxy
- func (t FunCaptchaTask) WithProxyPassword(proxyPassword string) taskProxy
- func (t FunCaptchaTask) WithUserAgent(userAgent string) userAgentAndCookies
- type FunCaptchaTaskProxyless
- type FunCaptchaTaskSolution
- type FuncaptchaComplexImageTask
- func (t FuncaptchaComplexImageTask) Validate() error
- func (t FuncaptchaComplexImageTask) WithCookies(cookies string) userAgentAndCookies
- func (t FuncaptchaComplexImageTask) WithImagesBase64(imagesBase64 []string) FuncaptchaComplexImageTask
- func (t FuncaptchaComplexImageTask) WithImagesUrls(imageUrls []string) FuncaptchaComplexImageTask
- func (t FuncaptchaComplexImageTask) WithMetadataTask(task string) FuncaptchaComplexImageTask
- func (t FuncaptchaComplexImageTask) WithUserAgent(userAgent string) FuncaptchaComplexImageTask
- func (t FuncaptchaComplexImageTask) WithWebsiteURL(websiteURL string) FuncaptchaComplexImageTask
- type GeeTestTask
- type GeeTestTaskProxyless
- func (t GeeTestTaskProxyless) Validate() error
- func (t GeeTestTaskProxyless) WithChallenge(challenge string) GeeTestTaskProxyless
- func (t GeeTestTaskProxyless) WithCookies(cookies string) userAgentAndCookies
- func (t GeeTestTaskProxyless) WithGeetestApiServerSubdomain(geetestApiServerSubdomain string) GeeTestTaskProxyless
- func (t GeeTestTaskProxyless) WithGeetestGetLib(geetestGetLib string) GeeTestTaskProxyless
- func (t GeeTestTaskProxyless) WithInitParametres(initParameters interface{}) GeeTestTaskProxyless
- func (t GeeTestTaskProxyless) WithUserAgent(userAgent string) GeeTestTaskProxyless
- func (t GeeTestTaskProxyless) WithVersion(version int) GeeTestTaskProxyless
- type GeeTestTaskSolution
- type HCaptchaComplexImageTask
- func (t HCaptchaComplexImageTask) Validate() error
- func (t HCaptchaComplexImageTask) WithCookies(cookies string) userAgentAndCookies
- func (t HCaptchaComplexImageTask) WithImagesBase64(imagesBase64 []string) HCaptchaComplexImageTask
- func (t HCaptchaComplexImageTask) WithImagesUrls(imageUrls []string) HCaptchaComplexImageTask
- func (t HCaptchaComplexImageTask) WithMetadataTask(task string) HCaptchaComplexImageTask
- func (t HCaptchaComplexImageTask) WithUserAgent(userAgent string) HCaptchaComplexImageTask
- func (t HCaptchaComplexImageTask) WithWebsiteURL(websiteURL string) HCaptchaComplexImageTask
- type HCaptchaTask
- func (t HCaptchaTask) Validate() error
- func (t HCaptchaTask) WithCookies(cookies string) userAgentAndCookies
- func (t HCaptchaTask) WithProxyLogin(proxyLogin string) taskProxy
- func (t HCaptchaTask) WithProxyPassword(proxyPassword string) taskProxy
- func (t HCaptchaTask) WithUserAgent(userAgent string) userAgentAndCookies
- type HCaptchaTaskProxyless
- func (t HCaptchaTaskProxyless) Validate() error
- func (t HCaptchaTaskProxyless) WithCookies(cookies string) userAgentAndCookies
- func (t HCaptchaTaskProxyless) WithData(data string) HCaptchaTaskProxyless
- func (t HCaptchaTaskProxyless) WithIsInvisible(isInvisible bool) HCaptchaTaskProxyless
- func (t HCaptchaTaskProxyless) WithUserAgent(userAgent string) userAgentAndCookies
- type HCaptchaTaskSolution
- type ImageToTextTask
- func (t ImageToTextTask) Validate() error
- func (t ImageToTextTask) WithCapMonsterModule(capMonsterModule string) ImageToTextTask
- func (t ImageToTextTask) WithCase(taskCase bool) ImageToTextTask
- func (t ImageToTextTask) WithMath(math bool) ImageToTextTask
- func (t ImageToTextTask) WithNumeric(numeric int) ImageToTextTask
- func (t ImageToTextTask) WithRecognizingThreshold(recognizingThreshold int) ImageToTextTask
- type ImageToTextTaskSolution
- type MetadataFuncaptcha
- type MetadataHCaptcha
- type MetadataRecaptcha
- type RecaptchaComplexImageTask
- func (t RecaptchaComplexImageTask) Validate() error
- func (t RecaptchaComplexImageTask) WithCookies(cookies string) userAgentAndCookies
- func (t RecaptchaComplexImageTask) WithImagesBase64(imagesBase64 []string) RecaptchaComplexImageTask
- func (t RecaptchaComplexImageTask) WithImagesUrls(imageUrls []string) RecaptchaComplexImageTask
- func (t RecaptchaComplexImageTask) WithMetadataTask(task string) RecaptchaComplexImageTask
- func (t RecaptchaComplexImageTask) WithMetadataTaskDefinition(taskDefinition string) RecaptchaComplexImageTask
- func (t RecaptchaComplexImageTask) WithUserAgent(userAgent string) RecaptchaComplexImageTask
- func (t RecaptchaComplexImageTask) WithWebsiteURL(websiteURL string) RecaptchaComplexImageTask
- type RecaptchaV2EnterpriseTask
- func (t RecaptchaV2EnterpriseTask) Validate() error
- func (t RecaptchaV2EnterpriseTask) WithCookies(cookies string) userAgentAndCookies
- func (t RecaptchaV2EnterpriseTask) WithProxyLogin(proxyLogin string) taskProxy
- func (t RecaptchaV2EnterpriseTask) WithProxyPassword(proxyPassword string) taskProxy
- func (t RecaptchaV2EnterpriseTask) WithUserAgent(userAgent string) userAgentAndCookies
- type RecaptchaV2EnterpriseTaskProxyless
- type RecaptchaV2EnterpriseTaskSolution
- type RecaptchaV2Task
- func (t RecaptchaV2Task) Validate() error
- func (t RecaptchaV2Task) WithCookies(cookies string) userAgentAndCookies
- func (t RecaptchaV2Task) WithProxyLogin(proxyLogin string) taskProxy
- func (t RecaptchaV2Task) WithProxyPassword(proxyPassword string) taskProxy
- func (t RecaptchaV2Task) WithUserAgent(userAgent string) userAgentAndCookies
- type RecaptchaV2TaskProxyless
- func (t RecaptchaV2TaskProxyless) Validate() error
- func (t RecaptchaV2TaskProxyless) WithCookies(cookies string) userAgentAndCookies
- func (t RecaptchaV2TaskProxyless) WithRecaptchaDataSValue(recaptchaDataSValue string) RecaptchaV2TaskProxyless
- func (t RecaptchaV2TaskProxyless) WithUserAgent(userAgent string) userAgentAndCookies
- type RecaptchaV2TaskSolution
- type RecaptchaV3TaskProxyless
- type RecaptchaV3TaskTaskSolution
- type TurnstileTask
- type TurnstileTaskProxyless
- func (t TurnstileTaskProxyless) Validate() error
- func (t TurnstileTaskProxyless) WithCloudflareTaskType(cloudflareTaskType string) TurnstileTaskProxyless
- func (t TurnstileTaskProxyless) WithCookies(cookies string) userAgentAndCookies
- func (t TurnstileTaskProxyless) WithData(data string) TurnstileTaskProxyless
- func (t TurnstileTaskProxyless) WithHtmlPageBase64(htmlPageBase64 string) TurnstileTaskProxyless
- func (t TurnstileTaskProxyless) WithPageAction(pageAction string) TurnstileTaskProxyless
- func (t TurnstileTaskProxyless) WithPageData(pageData string) TurnstileTaskProxyless
- func (t TurnstileTaskProxyless) WithUserAgent(userAgent string) TurnstileTaskProxyless
- type TurnstileTaskSolution
Constants ¶
View Source
const ( ProxyTypeHttp = "http" ProxyTypeHttps = "https" ProxyTypeSocks4 = "socks4" ProxyTypeSocks5 = "socks5" CapMonsterModuleAmazon = "amazon" CapMonsterModuleBotdetect = "botdetect" CapMonsterModuleFacebook = "facebook" CapMonsterModuleGmx = "gmx" CapMonsterModuleGoogle = "google" CapMonsterModuleHotmail = "hotmail" CapMonsterModuleMailru = "mailru" CapMonsterModuleOk = "ok" CapMonsterModuleOknew = "oknew" CapMonsterModuleRamblerrus = "ramblerrus" CapMonsterModuleSolvemedia = "solvemedia" CapMonsterModuleSteam = "steam" CapMonsterModuleVk = "vk" CapMonsterModuleYandex = "yandex" CapMonsterModuleYandexnew = "yandexnew" CapMonsterModuleYandexwave = "yandexwave" CapMonsterModuleUniversal = "universal" )
Variables ¶
View Source
var ( ErrInvalidWebsiteUrl = errors.New("invalid WebsiteURL") ErrInvalidProxyPort = errors.New("invalid proxy port") ErrInvalidMinScore = errors.New("minScore is not in [0.1,0.9] range") ErrInvalidWebSiteKey = errors.New("website key len error") ErrInvalidGt = errors.New("gt len error") ErrInvalidRecognizingThreshold = errors.New("recognizingThreshold is not in [0,100] range") ErrInvalidEnterprisePayload = errors.New("enterprisePayload len error") ErrUserAgentRequired = errors.New("userAgent required") ErrMetaData = errors.New("invalid Metadata") ErrChallenge = errors.New("challenge required") ErrCloudflareTaskType = errors.New("value can be cf_clearance or token") ErrCloudflareHtmlPageBase64 = errors.New("htmlPageBase64 required") ErrCloudflarePageAction = errors.New("pageAction required") ErrCloudflareData = errors.New("data required") ErrCloudflarePageData = errors.New("pageData required") )
Functions ¶
This section is empty.
Types ¶
type ComplexImageTask ¶ added in v1.1.0
type ComplexImageTask struct { Type string `json:"type"` Class string `json:"class"` ImageUrls *[]string `json:"imageUrls"` ImagesBase64 *[]string `json:"imagesBase64"` WebsiteURL *string `json:"websiteURL"` // contains filtered or unexported fields }
func (ComplexImageTask) WithCookies ¶ added in v1.1.0
func (t ComplexImageTask) WithCookies(cookies string) userAgentAndCookies
func (ComplexImageTask) WithUserAgent ¶ added in v1.1.0
func (t ComplexImageTask) WithUserAgent(userAgent string) userAgentAndCookies
type ComplexImageTaskSolution ¶ added in v1.1.0
type ComplexImageTaskSolution struct {
Answer []bool `json:"answer"`
}
type FunCaptchaTask ¶
type FunCaptchaTask struct { FunCaptchaTaskProxyless // contains filtered or unexported fields }
func NewFunCaptchaTask ¶
func NewFunCaptchaTask(websiteURL, websitePublicKey, proxyType, proxyAddress, userAgent string, proxyPort int) FunCaptchaTask
func (FunCaptchaTask) Validate ¶
func (t FunCaptchaTask) Validate() error
func (FunCaptchaTask) WithCookies ¶
func (t FunCaptchaTask) WithCookies(cookies string) userAgentAndCookies
func (FunCaptchaTask) WithProxyLogin ¶
func (t FunCaptchaTask) WithProxyLogin(proxyLogin string) taskProxy
func (FunCaptchaTask) WithProxyPassword ¶
func (t FunCaptchaTask) WithProxyPassword(proxyPassword string) taskProxy
func (FunCaptchaTask) WithUserAgent ¶
func (t FunCaptchaTask) WithUserAgent(userAgent string) userAgentAndCookies
type FunCaptchaTaskProxyless ¶
type FunCaptchaTaskProxyless struct { Type string `json:"type"` WebsiteURL string `json:"websiteURL"` FuncaptchaApiJSSubdomain *string `json:"funcaptchaApiJSSubdomain"` WebsitePublicKey string `json:"websitePublicKey"` Data *string `json:"data"` }
func NewFunCaptchaTaskProxyless ¶
func NewFunCaptchaTaskProxyless(websiteURL, websitePublicKey string) FunCaptchaTaskProxyless
func (FunCaptchaTaskProxyless) Validate ¶
func (t FunCaptchaTaskProxyless) Validate() error
func (FunCaptchaTaskProxyless) WithData ¶
func (t FunCaptchaTaskProxyless) WithData(data string) FunCaptchaTaskProxyless
func (FunCaptchaTaskProxyless) WithFuncaptchaApiJSSubdomain ¶
func (t FunCaptchaTaskProxyless) WithFuncaptchaApiJSSubdomain(funcaptchaApiJSSubdomain string) FunCaptchaTaskProxyless
type FunCaptchaTaskSolution ¶
type FuncaptchaComplexImageTask ¶ added in v1.3.0
type FuncaptchaComplexImageTask struct { ComplexImageTask MetadataFuncaptcha `json:"metadata"` }
func NewFuncaptchaComplexImageTask ¶ added in v1.3.0
func NewFuncaptchaComplexImageTask(metadata MetadataFuncaptcha) FuncaptchaComplexImageTask
func (FuncaptchaComplexImageTask) Validate ¶ added in v1.3.0
func (t FuncaptchaComplexImageTask) Validate() error
func (FuncaptchaComplexImageTask) WithCookies ¶ added in v1.3.0
func (t FuncaptchaComplexImageTask) WithCookies(cookies string) userAgentAndCookies
func (FuncaptchaComplexImageTask) WithImagesBase64 ¶ added in v1.3.0
func (t FuncaptchaComplexImageTask) WithImagesBase64(imagesBase64 []string) FuncaptchaComplexImageTask
func (FuncaptchaComplexImageTask) WithImagesUrls ¶ added in v1.3.0
func (t FuncaptchaComplexImageTask) WithImagesUrls(imageUrls []string) FuncaptchaComplexImageTask
func (FuncaptchaComplexImageTask) WithMetadataTask ¶ added in v1.3.0
func (t FuncaptchaComplexImageTask) WithMetadataTask(task string) FuncaptchaComplexImageTask
func (FuncaptchaComplexImageTask) WithUserAgent ¶ added in v1.3.0
func (t FuncaptchaComplexImageTask) WithUserAgent(userAgent string) FuncaptchaComplexImageTask
func (FuncaptchaComplexImageTask) WithWebsiteURL ¶ added in v1.3.0
func (t FuncaptchaComplexImageTask) WithWebsiteURL(websiteURL string) FuncaptchaComplexImageTask
type GeeTestTask ¶
type GeeTestTask struct { GeeTestTaskProxyless // contains filtered or unexported fields }
func NewGeeTestTask ¶
func NewGeeTestTask(websiteURL, gt, proxyType, proxyAddress string, proxyPort int, userAgent string) GeeTestTask
func (GeeTestTask) Validate ¶
func (t GeeTestTask) Validate() error
func (GeeTestTask) WithCookies ¶
func (t GeeTestTask) WithCookies(cookies string) userAgentAndCookies
func (GeeTestTask) WithProxyLogin ¶
func (t GeeTestTask) WithProxyLogin(proxyLogin string) taskProxy
func (GeeTestTask) WithProxyPassword ¶
func (t GeeTestTask) WithProxyPassword(proxyPassword string) taskProxy
type GeeTestTaskProxyless ¶
type GeeTestTaskProxyless struct { Type string `json:"type"` WebsiteURL string `json:"websiteURL"` Gt string `json:"gt"` Challenge *string `json:"challenge,omitempty"` Version *int `json:"version,omitempty"` InitParameters *interface{} `json:"initParameters,omitempty"` GeetestApiServerSubdomain *string `json:"geetestApiServerSubdomain,omitempty"` GeetestGetLib *string `json:"geetestGetLib,omitempty"` // contains filtered or unexported fields }
func NewGeeTestTaskProxyless ¶
func NewGeeTestTaskProxyless(websiteURL string, gt string) GeeTestTaskProxyless
func (GeeTestTaskProxyless) Validate ¶
func (t GeeTestTaskProxyless) Validate() error
func (GeeTestTaskProxyless) WithChallenge ¶ added in v1.4.0
func (t GeeTestTaskProxyless) WithChallenge(challenge string) GeeTestTaskProxyless
func (GeeTestTaskProxyless) WithCookies ¶
func (t GeeTestTaskProxyless) WithCookies(cookies string) userAgentAndCookies
func (GeeTestTaskProxyless) WithGeetestApiServerSubdomain ¶
func (t GeeTestTaskProxyless) WithGeetestApiServerSubdomain(geetestApiServerSubdomain string) GeeTestTaskProxyless
func (GeeTestTaskProxyless) WithGeetestGetLib ¶
func (t GeeTestTaskProxyless) WithGeetestGetLib(geetestGetLib string) GeeTestTaskProxyless
func (GeeTestTaskProxyless) WithInitParametres ¶ added in v1.4.0
func (t GeeTestTaskProxyless) WithInitParametres(initParameters interface{}) GeeTestTaskProxyless
func (GeeTestTaskProxyless) WithUserAgent ¶
func (t GeeTestTaskProxyless) WithUserAgent(userAgent string) GeeTestTaskProxyless
func (GeeTestTaskProxyless) WithVersion ¶ added in v1.4.0
func (t GeeTestTaskProxyless) WithVersion(version int) GeeTestTaskProxyless
type GeeTestTaskSolution ¶
type GeeTestTaskSolution struct { Challenge *string `json:"challenge"` Validate *string `json:"validate"` Seccode *string `json:"seccode"` Cookies *map[string]string `json:"cookies"` CaptchaId *string `json:"captcha_id"` LotNumber *string `json:"lot_number"` PassToken *string `json:"pass_token"` GenTime *string `json:"gen_time"` CaptchaOutput *string `json:"captcha_output"` }
type HCaptchaComplexImageTask ¶ added in v1.1.0
type HCaptchaComplexImageTask struct { ComplexImageTask MetadataHCaptcha `json:"metadata"` }
func NewHCaptchaComplexImageTask ¶ added in v1.1.0
func NewHCaptchaComplexImageTask(metadata MetadataHCaptcha) HCaptchaComplexImageTask
func (HCaptchaComplexImageTask) Validate ¶ added in v1.1.0
func (t HCaptchaComplexImageTask) Validate() error
func (HCaptchaComplexImageTask) WithCookies ¶ added in v1.1.0
func (t HCaptchaComplexImageTask) WithCookies(cookies string) userAgentAndCookies
func (HCaptchaComplexImageTask) WithImagesBase64 ¶ added in v1.1.0
func (t HCaptchaComplexImageTask) WithImagesBase64(imagesBase64 []string) HCaptchaComplexImageTask
func (HCaptchaComplexImageTask) WithImagesUrls ¶ added in v1.1.0
func (t HCaptchaComplexImageTask) WithImagesUrls(imageUrls []string) HCaptchaComplexImageTask
func (HCaptchaComplexImageTask) WithMetadataTask ¶ added in v1.3.0
func (t HCaptchaComplexImageTask) WithMetadataTask(task string) HCaptchaComplexImageTask
func (HCaptchaComplexImageTask) WithUserAgent ¶ added in v1.1.0
func (t HCaptchaComplexImageTask) WithUserAgent(userAgent string) HCaptchaComplexImageTask
func (HCaptchaComplexImageTask) WithWebsiteURL ¶ added in v1.1.0
func (t HCaptchaComplexImageTask) WithWebsiteURL(websiteURL string) HCaptchaComplexImageTask
type HCaptchaTask ¶
type HCaptchaTask struct { HCaptchaTaskProxyless // contains filtered or unexported fields }
func NewHCaptchaTask ¶
func NewHCaptchaTask(websiteURL, websiteKey, proxyType, proxyAddress string, proxyPort int) HCaptchaTask
func (HCaptchaTask) Validate ¶
func (t HCaptchaTask) Validate() error
func (HCaptchaTask) WithCookies ¶
func (t HCaptchaTask) WithCookies(cookies string) userAgentAndCookies
func (HCaptchaTask) WithProxyLogin ¶
func (t HCaptchaTask) WithProxyLogin(proxyLogin string) taskProxy
func (HCaptchaTask) WithProxyPassword ¶
func (t HCaptchaTask) WithProxyPassword(proxyPassword string) taskProxy
func (HCaptchaTask) WithUserAgent ¶
func (t HCaptchaTask) WithUserAgent(userAgent string) userAgentAndCookies
type HCaptchaTaskProxyless ¶
type HCaptchaTaskProxyless struct { Type string `json:"type"` WebsiteURL string `json:"websiteURL"` WebsiteKey string `json:"websiteKey"` IsInvisible *bool `json:"isInvisible,omitempty"` Data *string `json:"data,omitempty"` // contains filtered or unexported fields }
func NewHCaptchaTaskProxyless ¶
func NewHCaptchaTaskProxyless(websiteURL, websiteKey string) HCaptchaTaskProxyless
func (HCaptchaTaskProxyless) Validate ¶
func (t HCaptchaTaskProxyless) Validate() error
func (HCaptchaTaskProxyless) WithCookies ¶
func (t HCaptchaTaskProxyless) WithCookies(cookies string) userAgentAndCookies
func (HCaptchaTaskProxyless) WithData ¶
func (t HCaptchaTaskProxyless) WithData(data string) HCaptchaTaskProxyless
func (HCaptchaTaskProxyless) WithIsInvisible ¶
func (t HCaptchaTaskProxyless) WithIsInvisible(isInvisible bool) HCaptchaTaskProxyless
func (HCaptchaTaskProxyless) WithUserAgent ¶
func (t HCaptchaTaskProxyless) WithUserAgent(userAgent string) userAgentAndCookies
type HCaptchaTaskSolution ¶
type ImageToTextTask ¶
type ImageToTextTask struct { Type string `json:"type"` Body string `json:"body"` CapMonsterModule *string `json:"CapMonsterModule,omitempty"` RecognizingThreshold *int `json:"recognizingThreshold,omitempty"` Case *bool `json:"Case,omitempty"` Numeric *int `json:"numeric,omitempty"` Math *bool `json:"math,omitempty"` }
func NewImageToTextTask ¶
func NewImageToTextTask(body string) ImageToTextTask
func (ImageToTextTask) Validate ¶
func (t ImageToTextTask) Validate() error
func (ImageToTextTask) WithCapMonsterModule ¶
func (t ImageToTextTask) WithCapMonsterModule(capMonsterModule string) ImageToTextTask
func (ImageToTextTask) WithCase ¶
func (t ImageToTextTask) WithCase(taskCase bool) ImageToTextTask
func (ImageToTextTask) WithMath ¶
func (t ImageToTextTask) WithMath(math bool) ImageToTextTask
func (ImageToTextTask) WithNumeric ¶
func (t ImageToTextTask) WithNumeric(numeric int) ImageToTextTask
func (ImageToTextTask) WithRecognizingThreshold ¶
func (t ImageToTextTask) WithRecognizingThreshold(recognizingThreshold int) ImageToTextTask
type ImageToTextTaskSolution ¶
type MetadataFuncaptcha ¶ added in v1.3.0
type MetadataFuncaptcha struct {
Task string `json:"Task"`
}
type MetadataHCaptcha ¶ added in v1.1.0
type MetadataHCaptcha struct {
Task string `json:"Task"`
}
type MetadataRecaptcha ¶ added in v1.1.0
type RecaptchaComplexImageTask ¶ added in v1.1.0
type RecaptchaComplexImageTask struct { ComplexImageTask MetadataRecaptcha `json:"metadata"` }
func NewRecaptchaComplexImageTask ¶ added in v1.1.0
func NewRecaptchaComplexImageTask(metadata MetadataRecaptcha) RecaptchaComplexImageTask
func (RecaptchaComplexImageTask) Validate ¶ added in v1.1.0
func (t RecaptchaComplexImageTask) Validate() error
func (RecaptchaComplexImageTask) WithCookies ¶ added in v1.1.0
func (t RecaptchaComplexImageTask) WithCookies(cookies string) userAgentAndCookies
func (RecaptchaComplexImageTask) WithImagesBase64 ¶ added in v1.1.0
func (t RecaptchaComplexImageTask) WithImagesBase64(imagesBase64 []string) RecaptchaComplexImageTask
func (RecaptchaComplexImageTask) WithImagesUrls ¶ added in v1.1.0
func (t RecaptchaComplexImageTask) WithImagesUrls(imageUrls []string) RecaptchaComplexImageTask
func (RecaptchaComplexImageTask) WithMetadataTask ¶ added in v1.1.0
func (t RecaptchaComplexImageTask) WithMetadataTask(task string) RecaptchaComplexImageTask
func (RecaptchaComplexImageTask) WithMetadataTaskDefinition ¶ added in v1.1.0
func (t RecaptchaComplexImageTask) WithMetadataTaskDefinition(taskDefinition string) RecaptchaComplexImageTask
func (RecaptchaComplexImageTask) WithUserAgent ¶ added in v1.1.0
func (t RecaptchaComplexImageTask) WithUserAgent(userAgent string) RecaptchaComplexImageTask
func (RecaptchaComplexImageTask) WithWebsiteURL ¶ added in v1.1.0
func (t RecaptchaComplexImageTask) WithWebsiteURL(websiteURL string) RecaptchaComplexImageTask
type RecaptchaV2EnterpriseTask ¶
type RecaptchaV2EnterpriseTask struct { RecaptchaV2EnterpriseTaskProxyless // contains filtered or unexported fields }
func NewRecaptchaV2EnterpriseTask ¶
func NewRecaptchaV2EnterpriseTask(websiteURL, websiteKey, proxyType, proxyAddress string, proxyPort int) RecaptchaV2EnterpriseTask
func (RecaptchaV2EnterpriseTask) Validate ¶
func (t RecaptchaV2EnterpriseTask) Validate() error
func (RecaptchaV2EnterpriseTask) WithCookies ¶
func (t RecaptchaV2EnterpriseTask) WithCookies(cookies string) userAgentAndCookies
func (RecaptchaV2EnterpriseTask) WithProxyLogin ¶
func (t RecaptchaV2EnterpriseTask) WithProxyLogin(proxyLogin string) taskProxy
func (RecaptchaV2EnterpriseTask) WithProxyPassword ¶
func (t RecaptchaV2EnterpriseTask) WithProxyPassword(proxyPassword string) taskProxy
func (RecaptchaV2EnterpriseTask) WithUserAgent ¶
func (t RecaptchaV2EnterpriseTask) WithUserAgent(userAgent string) userAgentAndCookies
type RecaptchaV2EnterpriseTaskProxyless ¶
type RecaptchaV2EnterpriseTaskProxyless struct { Type string `json:"type"` WebsiteURL string `json:"websiteURL"` WebsiteKey string `json:"websiteKey"` EnterprisePayload *string `json:"enterprisePayload,omitempty"` ApiDomain *string `json:"apiDomain,omitempty"` }
func NewRecaptchaV2EnterpriseTaskProxyless ¶
func NewRecaptchaV2EnterpriseTaskProxyless(websiteURL, websiteKey string) RecaptchaV2EnterpriseTaskProxyless
func (RecaptchaV2EnterpriseTaskProxyless) Validate ¶
func (t RecaptchaV2EnterpriseTaskProxyless) Validate() error
func (RecaptchaV2EnterpriseTaskProxyless) WithApiDomain ¶
func (t RecaptchaV2EnterpriseTaskProxyless) WithApiDomain(apiDomain string) RecaptchaV2EnterpriseTaskProxyless
func (RecaptchaV2EnterpriseTaskProxyless) WithEnterprisePayload ¶
func (t RecaptchaV2EnterpriseTaskProxyless) WithEnterprisePayload(enterprisePayload string) RecaptchaV2EnterpriseTaskProxyless
type RecaptchaV2Task ¶
type RecaptchaV2Task struct { RecaptchaV2TaskProxyless // contains filtered or unexported fields }
func NewRecaptchaV2Task ¶
func NewRecaptchaV2Task(websiteURL, websiteKey, proxyType, proxyAddress string, proxyPort int) RecaptchaV2Task
func (RecaptchaV2Task) Validate ¶
func (t RecaptchaV2Task) Validate() error
func (RecaptchaV2Task) WithCookies ¶
func (t RecaptchaV2Task) WithCookies(cookies string) userAgentAndCookies
func (RecaptchaV2Task) WithProxyLogin ¶
func (t RecaptchaV2Task) WithProxyLogin(proxyLogin string) taskProxy
func (RecaptchaV2Task) WithProxyPassword ¶
func (t RecaptchaV2Task) WithProxyPassword(proxyPassword string) taskProxy
func (RecaptchaV2Task) WithUserAgent ¶
func (t RecaptchaV2Task) WithUserAgent(userAgent string) userAgentAndCookies
type RecaptchaV2TaskProxyless ¶
type RecaptchaV2TaskProxyless struct { Type string `json:"type"` WebsiteURL string `json:"websiteURL"` WebsiteKey string `json:"websiteKey"` RecaptchaDataSValue *string `json:"recaptchaDataSValue,omitempty"` // contains filtered or unexported fields }
func NewRecaptchaV2TaskProxyless ¶
func NewRecaptchaV2TaskProxyless(websiteURL, websiteKey string) RecaptchaV2TaskProxyless
func (RecaptchaV2TaskProxyless) Validate ¶
func (t RecaptchaV2TaskProxyless) Validate() error
func (RecaptchaV2TaskProxyless) WithCookies ¶
func (t RecaptchaV2TaskProxyless) WithCookies(cookies string) userAgentAndCookies
func (RecaptchaV2TaskProxyless) WithRecaptchaDataSValue ¶
func (t RecaptchaV2TaskProxyless) WithRecaptchaDataSValue(recaptchaDataSValue string) RecaptchaV2TaskProxyless
func (RecaptchaV2TaskProxyless) WithUserAgent ¶
func (t RecaptchaV2TaskProxyless) WithUserAgent(userAgent string) userAgentAndCookies
type RecaptchaV2TaskSolution ¶
type RecaptchaV3TaskProxyless ¶
type RecaptchaV3TaskProxyless struct { Type string `json:"type"` WebsiteURL string `json:"websiteURL"` WebsiteKey string `json:"websiteKey"` MinScore *float64 `json:"minScore,omitempty"` PageAction *string `json:"pageAction,omitempty"` }
func NewRecaptchaV3TaskProxyless ¶
func NewRecaptchaV3TaskProxyless(websiteURL, websiteKey string) RecaptchaV3TaskProxyless
func (RecaptchaV3TaskProxyless) Validate ¶
func (t RecaptchaV3TaskProxyless) Validate() error
func (RecaptchaV3TaskProxyless) WithMinScore ¶
func (t RecaptchaV3TaskProxyless) WithMinScore(minScore float64) RecaptchaV3TaskProxyless
func (RecaptchaV3TaskProxyless) WithPageAction ¶
func (t RecaptchaV3TaskProxyless) WithPageAction(pageAction string) RecaptchaV3TaskProxyless
type TurnstileTask ¶
type TurnstileTask struct { TurnstileTaskProxyless // contains filtered or unexported fields }
func NewTurnstileTask ¶
func NewTurnstileTask(websiteURL, websiteKey, proxyType, proxyAddress string, proxyPort int, userAgent string) TurnstileTask
func (TurnstileTask) Validate ¶
func (t TurnstileTask) Validate() error
func (TurnstileTask) WithCookies ¶ added in v1.4.0
func (t TurnstileTask) WithCookies(cookies string) userAgentAndCookies
func (TurnstileTask) WithProxyLogin ¶
func (t TurnstileTask) WithProxyLogin(proxyLogin string) taskProxy
func (TurnstileTask) WithProxyPassword ¶
func (t TurnstileTask) WithProxyPassword(proxyPassword string) taskProxy
type TurnstileTaskProxyless ¶
type TurnstileTaskProxyless struct { Type string `json:"type"` WebsiteURL string `json:"websiteURL"` WebsiteKey string `json:"websiteKey"` CloudflareTaskType *string `json:"cloudflareTaskType,omitempty"` PageAction *string `json:"PageAction,omitempty"` Data *string `json:"Data,omitempty"` PageData *string `json:"PageData,omitempty"` HtmlPageBase64 *string `json:"htmlPageBase64,omitempty"` // contains filtered or unexported fields }
func NewTurnstileTaskProxyless ¶
func NewTurnstileTaskProxyless(websiteURL, websiteKey string) TurnstileTaskProxyless
func (TurnstileTaskProxyless) Validate ¶
func (t TurnstileTaskProxyless) Validate() error
func (TurnstileTaskProxyless) WithCloudflareTaskType ¶ added in v1.4.0
func (t TurnstileTaskProxyless) WithCloudflareTaskType(cloudflareTaskType string) TurnstileTaskProxyless
func (TurnstileTaskProxyless) WithCookies ¶ added in v1.4.0
func (t TurnstileTaskProxyless) WithCookies(cookies string) userAgentAndCookies
func (TurnstileTaskProxyless) WithData ¶ added in v1.4.0
func (t TurnstileTaskProxyless) WithData(data string) TurnstileTaskProxyless
func (TurnstileTaskProxyless) WithHtmlPageBase64 ¶ added in v1.4.0
func (t TurnstileTaskProxyless) WithHtmlPageBase64(htmlPageBase64 string) TurnstileTaskProxyless
func (TurnstileTaskProxyless) WithPageAction ¶ added in v1.4.0
func (t TurnstileTaskProxyless) WithPageAction(pageAction string) TurnstileTaskProxyless
func (TurnstileTaskProxyless) WithPageData ¶ added in v1.4.0
func (t TurnstileTaskProxyless) WithPageData(pageData string) TurnstileTaskProxyless
func (TurnstileTaskProxyless) WithUserAgent ¶ added in v1.4.0
func (t TurnstileTaskProxyless) WithUserAgent(userAgent string) TurnstileTaskProxyless
type TurnstileTaskSolution ¶
type TurnstileTaskSolution struct {
// contains filtered or unexported fields
}
Source Files
¶
- FuncaptchaComplexImageTask.go
- RecaptchaComplexImageTask.go
- complexImageTask.go
- funCaptchaTask.go
- geeTestTask.go
- hCaptchaComplexImageTask.go
- hCaptchaTask.go
- imageToTextTask.go
- recaptchaV2.go
- recaptchaV2EnterpriseTask.go
- recaptchaV3TaskProxyless.go
- taskProxy.go
- turnstileTask.go
- userAgentAndCookies.go
- vars.go
Click to show internal directories.
Click to hide internal directories.