You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e832b59
Browse filesBrowse the repository at this point in the historyBrowse files
**Important:**`tspdCookie` and `htmlPageBase64` are dynamic — extract them immediately before creating the task. A proxy with a static session and the same IP must be used at all stages.
* An object containing properties of the captcha solution.
358
367
* @typedef {Object} CaptchaAnswer
@@ -2502,6 +2511,74 @@ public async alibaba(params: paramsAlibaba): Promise<CaptchaAnswer> {
2502
2511
}
2503
2512
}
2504
2513
2514
+
/**
2515
+
* ### Solves TSPD Captcha
2516
+
*
2517
+
* Cookie-based method for automatic solving of TSPD captcha.
2518
+
* [Read more about TSPD captcha](https://2captcha.com/2captcha-api#tspd-captcha).
2519
+
*
2520
+
* **Important:** `tspdCookie` and `htmlPageBase64` are dynamic — extract them immediately before creating the task,
2521
+
* otherwise the solve may fail. A proxy with a static session and the same IP must be used at all stages.
2522
+
*
2523
+
* @param {{ pageurl, tspdCookie, htmlPageBase64, proxy, proxytype, userAgent }} params Parameters TSPD Captcha as an object.
2524
+
* @param {string} params.pageurl Full URL of the page where you see the captcha.
2525
+
* @param {string} params.tspdCookie Cookies received on the TSPD challenge page. Values starting with `TS...` or `Tspd_...`.
2526
+
* @param {string} params.htmlPageBase64 Full HTML of the challenge page encoded in base64.
2527
+
* @param {string} params.proxy Proxy in format: `login:password@123.123.123.123:3128`. You can find more info about proxies [here](https://2captcha.com/2captcha-api#proxies).
2528
+
* @param {string} params.proxytype Type of your proxy: `HTTP`, `HTTPS`, `SOCKS4`, `SOCKS5`.
2529
+
* @param {string} params.userAgent Optional. Browser User-Agent. We recommend sending a valid Windows browser string.
2530
+
*
2531
+
* @returns {Promise<CaptchaAnswer>} The result from the solve.
0 commit comments