Class CaptchaSolver
captcha ソルバーの基底クラス。Client に渡すと、アカウントがロックされたとき (code 326)に自動でロック解除を試みます。
public abstract class CaptchaSolver
- Inheritance
-
CaptchaSolver
- Derived
- Inherited Members
Fields
CaptchaSiteKey
public const string CaptchaSiteKey = "0152B4EB-D2DC-460A-89A1-629838B529C9"
Field Value
CaptchaUrl
public static readonly string CaptchaUrl
Field Value
Properties
Client
このソルバーを使うクライアント(Client のコンストラクターが設定します)。
public Client? Client { get; }
Property Value
MaxAttempts
ロック解除の最大試行回数。
public int MaxAttempts { get; set; }
Property Value
Methods
ConfirmUnlockAsync(string?, string?, string?, bool)
ロック解除フォームを送信します。
public Task<(HttpResponseMessage Response, UnlockHtml Html)> ConfirmUnlockAsync(string? authenticityToken, string? assignmentToken, string? verificationString = null, bool uiMetrics = false)
Parameters
Returns
GetUnlockHtmlAsync()
ロック解除ページを取得して解析します。
public Task<(HttpResponseMessage Response, UnlockHtml Html)> GetUnlockHtmlAsync()
Returns
ParseUnlockHtml(string)
ロック解除ページを解析します。
public static UnlockHtml ParseUnlockHtml(string html)
Parameters
htmlstring
Returns
SolveFunCaptchaAsync(string?)
FunCaptcha を解きます。errorId と solution.token を含む結果を返します。
public abstract Task<JsonObject> SolveFunCaptchaAsync(string? blob)
Parameters
blobstring
Returns
UiMetrixAsync()
ui_metrics スクリプトの本体(return {...}; の部分)を取得します。
public Task<string> UiMetrixAsync()