Copyright | (c) 2022 Edward Yang |
---|---|
License | MIT |
Safe Haskell | None |
Language | Haskell2010 |
This module is for internal-use and does not follow pvp versioning policies.
Synopsis
- data ProxyProtocol
- data ProxyAuth = ProxyAuth {}
- class HasPassword s a | s -> a where
- class HasUsername s a | s -> a where
- data Proxy = Proxy {}
- class HasAddress s a | s -> a where
- class HasAuth s a | s -> a where
- class HasPort s a | s -> a where
- class HasProtocol s a | s -> a where
- data ImageCaptcha = ImageCaptcha {
- _apiKey :: Text
- _pollingInterval :: Maybe (Time Millisecond)
- _timeoutDuration :: Maybe (Time Millisecond)
- _body :: Text
- class HasApiKey s a | s -> a where
- class HasBody s a | s -> a where
- class HasPollingInterval s a | s -> a where
- pollingInterval :: Lens' s a
- class HasTimeoutDuration s a | s -> a where
- timeoutDuration :: Lens' s a
- data TextCaptcha = TextCaptcha {
- _apiKey :: Text
- _pollingInterval :: Maybe (Time Millisecond)
- _timeoutDuration :: Maybe (Time Millisecond)
- _body :: Text
- data FunCaptcha = FunCaptcha {
- _apiKey :: Text
- _pollingInterval :: Maybe (Time Millisecond)
- _timeoutDuration :: Maybe (Time Millisecond)
- _captchaUrl :: Text
- _captchaKey :: Text
- _serviceUrl :: Maybe Text
- _userAgent :: Maybe Text
- _proxy :: Maybe Proxy
- _cookies :: Cookies
- class HasCaptchaKey s a | s -> a where
- captchaKey :: Lens' s a
- class HasCaptchaUrl s a | s -> a where
- captchaUrl :: Lens' s a
- class HasCookies s a | s -> a where
- class HasProxy s a | s -> a where
- class HasServiceUrl s a | s -> a where
- serviceUrl :: Lens' s a
- class HasUserAgent s a | s -> a where
- data ReCaptchaV2 = ReCaptchaV2 {
- _apiKey :: Text
- _pollingInterval :: Maybe (Time Millisecond)
- _timeoutDuration :: Maybe (Time Millisecond)
- _captchaUrl :: Text
- _captchaKey :: Text
- _dataS :: Maybe Text
- _invisible :: Bool
- _userAgent :: Maybe Text
- _proxy :: Maybe Proxy
- _cookies :: Cookies
- class HasDataS s a | s -> a where
- class HasInvisible s a | s -> a where
- data ReCaptchaV3 = ReCaptchaV3 {
- _apiKey :: Text
- _pollingInterval :: Maybe (Time Millisecond)
- _timeoutDuration :: Maybe (Time Millisecond)
- _captchaUrl :: Text
- _captchaKey :: Text
- _minScore :: Double
- _action :: Maybe Text
- _userAgent :: Maybe Text
- _proxy :: Maybe Proxy
- _cookies :: Cookies
- class HasAction s a | s -> a where
- class HasMinScore s a | s -> a where
- data HCaptcha = HCaptcha {
- _apiKey :: Text
- _pollingInterval :: Maybe (Time Millisecond)
- _timeoutDuration :: Maybe (Time Millisecond)
- _captchaUrl :: Text
- _captchaKey :: Text
- _invisible :: Bool
- _rqData :: Maybe Text
- _userAgent :: Maybe Text
- _proxy :: Maybe Proxy
- _cookies :: Cookies
- class HasRqData s a | s -> a where
Documentation
data ProxyProtocol Source #
Proxy protocol.
Instances
Show ProxyProtocol Source # | |
Defined in Captcha.Internal.Types showsPrec :: Int -> ProxyProtocol -> ShowS # show :: ProxyProtocol -> String # showList :: [ProxyProtocol] -> ShowS # | |
Default ProxyProtocol Source # | |
Defined in Captcha.Internal.Types def :: ProxyProtocol # | |
HasProtocol Proxy ProxyProtocol Source # | |
Defined in Captcha.Internal.Types |
Proxy authentication.
Instances
Show ProxyAuth Source # | |
Generic ProxyAuth Source # | |
Default ProxyAuth Source # | |
Defined in Captcha.Internal.Types | |
HasUsername ProxyAuth Text Source # | |
HasPassword ProxyAuth Text Source # | |
HasAuth Proxy (Maybe ProxyAuth) Source # | |
type Rep ProxyAuth Source # | |
Defined in Captcha.Internal.Types type Rep ProxyAuth = D1 ('MetaData "ProxyAuth" "Captcha.Internal.Types" "captcha-core-0.1.0.1-FX9y8zPZYJm3cX5fI505eW" 'False) (C1 ('MetaCons "ProxyAuth" 'PrefixI 'True) (S1 ('MetaSel ('Just "_username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "_password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
class HasPassword s a | s -> a where Source #
class HasUsername s a | s -> a where Source #
Proxy to be used when solving a captcha.
Instances
class HasAddress s a | s -> a where Source #
class HasProtocol s a | s -> a where Source #
Instances
HasProtocol Proxy ProxyProtocol Source # | |
Defined in Captcha.Internal.Types |
data ImageCaptcha Source #
Parameters for solving a captcha with text within an image.
ImageCaptcha | |
|
Instances
class HasApiKey s a | s -> a where Source #
Instances
HasApiKey ImageCaptcha Text Source # | |
Defined in Captcha.Internal.Types | |
HasApiKey TextCaptcha Text Source # | |
Defined in Captcha.Internal.Types | |
HasApiKey FunCaptcha Text Source # | |
Defined in Captcha.Internal.Types | |
HasApiKey ReCaptchaV2 Text Source # | |
Defined in Captcha.Internal.Types | |
HasApiKey ReCaptchaV3 Text Source # | |
Defined in Captcha.Internal.Types | |
HasApiKey HCaptcha Text Source # | |
class HasBody s a | s -> a where Source #
Instances
HasBody ImageCaptcha Text Source # | |
Defined in Captcha.Internal.Types | |
HasBody TextCaptcha Text Source # | |
Defined in Captcha.Internal.Types |
class HasPollingInterval s a | s -> a where Source #
pollingInterval :: Lens' s a Source #
Instances
a ~ Maybe (Time Millisecond) => HasPollingInterval ImageCaptcha a Source # | |
Defined in Captcha.Internal.Types | |
a ~ Maybe (Time Millisecond) => HasPollingInterval TextCaptcha a Source # | |
Defined in Captcha.Internal.Types | |
a ~ Maybe (Time Millisecond) => HasPollingInterval FunCaptcha a Source # | |
Defined in Captcha.Internal.Types | |
a ~ Maybe (Time Millisecond) => HasPollingInterval ReCaptchaV2 a Source # | |
Defined in Captcha.Internal.Types | |
a ~ Maybe (Time Millisecond) => HasPollingInterval ReCaptchaV3 a Source # | |
Defined in Captcha.Internal.Types | |
a ~ Maybe (Time Millisecond) => HasPollingInterval HCaptcha a Source # | |
Defined in Captcha.Internal.Types pollingInterval :: Lens' HCaptcha a Source # |
class HasTimeoutDuration s a | s -> a where Source #
timeoutDuration :: Lens' s a Source #
Instances
a ~ Maybe (Time Millisecond) => HasTimeoutDuration ImageCaptcha a Source # | |
Defined in Captcha.Internal.Types | |
a ~ Maybe (Time Millisecond) => HasTimeoutDuration TextCaptcha a Source # | |
Defined in Captcha.Internal.Types | |
a ~ Maybe (Time Millisecond) => HasTimeoutDuration FunCaptcha a Source # | |
Defined in Captcha.Internal.Types | |
a ~ Maybe (Time Millisecond) => HasTimeoutDuration ReCaptchaV2 a Source # | |
Defined in Captcha.Internal.Types | |
a ~ Maybe (Time Millisecond) => HasTimeoutDuration ReCaptchaV3 a Source # | |
Defined in Captcha.Internal.Types | |
a ~ Maybe (Time Millisecond) => HasTimeoutDuration HCaptcha a Source # | |
Defined in Captcha.Internal.Types timeoutDuration :: Lens' HCaptcha a Source # |
data TextCaptcha Source #
Parameters for solving a text captcha.
TextCaptcha | |
|
Instances
data FunCaptcha Source #
Parameters for solving Arkose Lab's FunCaptcha.
FunCaptcha | |
|
Instances
class HasCaptchaKey s a | s -> a where Source #
captchaKey :: Lens' s a Source #
Instances
HasCaptchaKey FunCaptcha Text Source # | |
Defined in Captcha.Internal.Types | |
HasCaptchaKey ReCaptchaV2 Text Source # | |
Defined in Captcha.Internal.Types | |
HasCaptchaKey ReCaptchaV3 Text Source # | |
Defined in Captcha.Internal.Types | |
HasCaptchaKey HCaptcha Text Source # | |
Defined in Captcha.Internal.Types |
class HasCaptchaUrl s a | s -> a where Source #
captchaUrl :: Lens' s a Source #
Instances
HasCaptchaUrl FunCaptcha Text Source # | |
Defined in Captcha.Internal.Types | |
HasCaptchaUrl ReCaptchaV2 Text Source # | |
Defined in Captcha.Internal.Types | |
HasCaptchaUrl ReCaptchaV3 Text Source # | |
Defined in Captcha.Internal.Types | |
HasCaptchaUrl HCaptcha Text Source # | |
Defined in Captcha.Internal.Types |
class HasCookies s a | s -> a where Source #
Instances
HasCookies FunCaptcha Cookies Source # | |
Defined in Captcha.Internal.Types | |
HasCookies ReCaptchaV2 Cookies Source # | |
Defined in Captcha.Internal.Types | |
HasCookies ReCaptchaV3 Cookies Source # | |
Defined in Captcha.Internal.Types | |
HasCookies HCaptcha Cookies Source # | |
class HasProxy s a | s -> a where Source #
Instances
HasProxy FunCaptcha (Maybe Proxy) Source # | |
Defined in Captcha.Internal.Types | |
HasProxy ReCaptchaV2 (Maybe Proxy) Source # | |
Defined in Captcha.Internal.Types | |
HasProxy ReCaptchaV3 (Maybe Proxy) Source # | |
Defined in Captcha.Internal.Types | |
HasProxy HCaptcha (Maybe Proxy) Source # | |
class HasServiceUrl s a | s -> a where Source #
serviceUrl :: Lens' s a Source #
Instances
HasServiceUrl FunCaptcha (Maybe Text) Source # | |
Defined in Captcha.Internal.Types serviceUrl :: Lens' FunCaptcha (Maybe Text) Source # |
class HasUserAgent s a | s -> a where Source #
Instances
HasUserAgent FunCaptcha (Maybe Text) Source # | |
Defined in Captcha.Internal.Types | |
HasUserAgent ReCaptchaV2 (Maybe Text) Source # | |
Defined in Captcha.Internal.Types | |
HasUserAgent ReCaptchaV3 (Maybe Text) Source # | |
Defined in Captcha.Internal.Types | |
HasUserAgent HCaptcha (Maybe Text) Source # | |
data ReCaptchaV2 Source #
Parameters for solving Google's reCAPTCHA v2.
ReCaptchaV2 | |
|
Instances
class HasDataS s a | s -> a where Source #
Instances
HasDataS ReCaptchaV2 (Maybe Text) Source # | |
Defined in Captcha.Internal.Types |
class HasInvisible s a | s -> a where Source #
Instances
data ReCaptchaV3 Source #
Parameters for solving Google's reCAPTCHA v3.
ReCaptchaV3 | |
|
Instances
class HasAction s a | s -> a where Source #
Instances
HasAction ReCaptchaV3 (Maybe Text) Source # | |
Defined in Captcha.Internal.Types |
class HasMinScore s a | s -> a where Source #
Instances
HasMinScore ReCaptchaV3 Double Source # | |
Defined in Captcha.Internal.Types |
Parameters for solving hCaptcha.
HCaptcha | |
|