@2captcha/captcha-solver 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
<a href="https://github.com/2captcha/2captcha-python"><img src="https://github.com/user-attachments/assets/37e1d860-033b-4cf3-a158-468fc6b4debc" width="82" height="30"></a>
|
|
2
|
+
<a href="https://github.com/2captcha/2captcha-javascript"><img src="https://github.com/user-attachments/assets/371b271e-33c3-4217-af21-b95517a4677c" width="36" height="30"></a>
|
|
3
|
+
<a href="https://github.com/2captcha/2captcha-go"><img src="https://github.com/user-attachments/assets/ab22182e-6cb2-41fa-91f4-d5e89c6d7c6f" width="63" height="30"></a>
|
|
4
|
+
<a href="https://github.com/2captcha/2captcha-ruby"><img src="https://github.com/user-attachments/assets/0270d56f-79b0-4c95-9b09-4de89579914b" width="75" height="30"></a>
|
|
5
|
+
<a href="https://github.com/2captcha/2captcha-cpp"><img src="https://github.com/user-attachments/assets/36de8512-acfd-44fb-bb1f-b7c793a3f926" width="45" height="30"></a>
|
|
6
|
+
<a href="https://github.com/2captcha/2captcha-php"><img src="https://github.com/user-attachments/assets/e8797843-3f61-4fa9-a155-ab0b21fb3858" width="52" height="30"></a>
|
|
7
|
+
<a href="https://github.com/2captcha/2captcha-java"><img src="https://github.com/user-attachments/assets/a3d923f6-4fec-4c07-ac50-e20da6370911" width="50" height="30"></a>
|
|
8
|
+
<a href="https://github.com/2captcha/2captcha-csharp"><img src="https://github.com/user-attachments/assets/f4d449de-780b-49ed-bb0a-b70c82ec4b32" width="38" height="30"></a>
|
|
9
|
+
|
|
10
|
+
# JavaScript module for 2Captcha API (captcha solver)
|
|
2
11
|
|
|
3
12
|
The easiest way to quickly integrate the [2Captcha](https://2captcha.com/) captcha-solving service into your code and automate the solving of any type of captcha.
|
|
13
|
+
Examples of API requests for different captcha types are available on the [JavaScript captcha solver](https://2captcha.com/lang/javascript) page.
|
|
4
14
|
|
|
5
|
-
- [JavaScript
|
|
15
|
+
- [JavaScript module for 2Captcha API (captcha solver)](#javascript-module-for-2captcha-api-captcha-solver)
|
|
6
16
|
- [Installation](#installation)
|
|
7
17
|
- [Configuration](#configuration)
|
|
8
18
|
- [TwoCaptcha instance options](#twocaptcha-instance-options)
|
|
@@ -33,6 +43,8 @@ The easiest way to quickly integrate the [2Captcha](https://2captcha.com/) captc
|
|
|
33
43
|
- [Proxies](#proxies)
|
|
34
44
|
- [Examples](#examples)
|
|
35
45
|
- [Useful articles](#useful-articles)
|
|
46
|
+
- [Get in touch](#get-in-touch)
|
|
47
|
+
- [Join the team 👪](#join-the-team-)
|
|
36
48
|
|
|
37
49
|
|
|
38
50
|
## Installation
|
|
@@ -547,9 +559,20 @@ Examples of solving all supported captcha types are located in the [examples] di
|
|
|
547
559
|
* [Custom Slider Captcha Demo](https://github.com/2captcha/custom-slider-demo)
|
|
548
560
|
* [Cloudflare Challenge page bypass code example](https://github.com/2captcha/cloudflare-demo)
|
|
549
561
|
|
|
562
|
+
## Get in touch
|
|
563
|
+
|
|
564
|
+
<a href="mailto:support@2captcha.com"><img src="https://github.com/user-attachments/assets/539df209-7c85-4fa5-84b4-fc22ab93fac7" width="80" height="30"></a>
|
|
565
|
+
<a href="https://2captcha.com/support/tickets/new"><img src="https://github.com/user-attachments/assets/be044db5-2e67-46c6-8c81-04b78bd99650" width="81" height="30"></a>
|
|
566
|
+
|
|
567
|
+
## Join the team 👪
|
|
568
|
+
|
|
569
|
+
There are many ways to contribute, of which development is only one! Find your next job. Open positions: AI experts, scrapers, developers, technical support, and much more! 😍
|
|
570
|
+
|
|
571
|
+
<a href="mailto:job@2captcha.com"><img src="https://github.com/user-attachments/assets/36d23ef5-7866-4841-8e17-261cc8a4e033" width="80" height="30"></a>
|
|
572
|
+
|
|
550
573
|
<!-- Shared links -->
|
|
551
574
|
[post options]: https://2captcha.com/2captcha-api#normal_post
|
|
552
575
|
[list of supported languages]: https://2captcha.com/2captcha-api#language
|
|
553
576
|
[Buy residential proxies]: https://2captcha.com/proxy/residential-proxies
|
|
554
577
|
[Quick start]: https://2captcha.com/proxy?openAddTrafficModal=true
|
|
555
|
-
[examples]: ./examples
|
|
578
|
+
[examples]: ./examples
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface paramsRecaptcha {
|
|
2
2
|
pageurl: string;
|
|
3
3
|
googlekey: string;
|
|
4
|
-
invisible?:
|
|
4
|
+
invisible?: 0 | 1;
|
|
5
5
|
datas?: string;
|
|
6
6
|
domain?: string;
|
|
7
7
|
cookies?: string;
|
|
@@ -281,7 +281,7 @@ export declare class Solver {
|
|
|
281
281
|
* @param {string} params.datas Value of `data-s` parameter you found on page. Curenttly applicable for Google Search and other Google services.
|
|
282
282
|
* @param {string} params.pingback URL for pingback (callback) response that will be sent when captcha is solved. URL should be registered on the server. [More info here](https://2captcha.com/2captcha-api#pingback).
|
|
283
283
|
* @param {string} params.action Value of `action` parameter you found on page.
|
|
284
|
-
* @param {
|
|
284
|
+
* @param {number} params.enterprise `1` - defines that you're sending reCAPTCHA Enterpise.
|
|
285
285
|
* @param {number} params.min_score The score needed for resolution reCAPTCHA V3. Currently it's almost impossible to get token with score higher than `0.3`
|
|
286
286
|
* @param {string} params.version `v2` — defines that you're sending a reCAPTCHA V2. `v3` — defines that you're sending a reCAPTCHA V3.
|
|
287
287
|
* @param {string} params.domain Domain used to load the captcha: `google.com` or `recaptcha.net`
|
|
@@ -458,7 +458,7 @@ export declare class Solver {
|
|
|
458
458
|
* lang,
|
|
459
459
|
* textinstructions,
|
|
460
460
|
* pingback }} params Extra properties to pass to 2captcha.
|
|
461
|
-
* @param {
|
|
461
|
+
* @param {string} params.body Base64 image data for the captcha.
|
|
462
462
|
* @param {number} params.phrase Captcha contains two or more words? `1` - Yes. `0` - No.
|
|
463
463
|
* @param {number} params.regsense Captcha is case sensitive? `1` - Yes. `0` - No.
|
|
464
464
|
* @param {number} params.numeric `0` - not specified. `1` - captcha contains only numbers. `2` - captcha contains only letters. `3` - captcha contains only numbers OR only letters. `4` - captcha MUST contain both numbers AND letters.
|
|
@@ -788,9 +788,9 @@ export declare class Solver {
|
|
|
788
788
|
* ### Bounding Box Method
|
|
789
789
|
*
|
|
790
790
|
* @param {{ image, textinstructions, imginstructions }} params Parameters Bounding Box Method as an object.
|
|
791
|
-
* @param {
|
|
792
|
-
* @param {
|
|
793
|
-
* @param {
|
|
791
|
+
* @param {string} params.image Image containing data for markup. The image must be encoded in `Base64` format.
|
|
792
|
+
* @param {string} params.textinstructions Text will be shown to worker to help him to select object on the image correctly. For example: "*Select cars in the image*". **Optional parameter**, if the instruction already exists in the form of the `imginstructions`.
|
|
793
|
+
* @param {string} params.imginstructions Image with instruction for worker to help him to select object on the image correctly. The image must be encoded in `Base64` format. **Optional parameter**, if the instruction already exists in the form of the `textinstructions`.
|
|
794
794
|
*
|
|
795
795
|
* @example
|
|
796
796
|
* solver.boundingBox({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2captcha.d.ts","sourceRoot":"","sources":["../../src/structs/2captcha.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,eAAe;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"2captcha.d.ts","sourceRoot":"","sources":["../../src/structs/2captcha.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,eAAe;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,Q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E,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAuBpD"}
|
package/dist/structs/2captcha.js
CHANGED
|
@@ -142,7 +142,7 @@ class Solver {
|
|
|
142
142
|
* @param {string} params.datas Value of `data-s` parameter you found on page. Curenttly applicable for Google Search and other Google services.
|
|
143
143
|
* @param {string} params.pingback URL for pingback (callback) response that will be sent when captcha is solved. URL should be registered on the server. [More info here](https://2captcha.com/2captcha-api#pingback).
|
|
144
144
|
* @param {string} params.action Value of `action` parameter you found on page.
|
|
145
|
-
* @param {
|
|
145
|
+
* @param {number} params.enterprise `1` - defines that you're sending reCAPTCHA Enterpise.
|
|
146
146
|
* @param {number} params.min_score The score needed for resolution reCAPTCHA V3. Currently it's almost impossible to get token with score higher than `0.3`
|
|
147
147
|
* @param {string} params.version `v2` — defines that you're sending a reCAPTCHA V2. `v3` — defines that you're sending a reCAPTCHA V3.
|
|
148
148
|
* @param {string} params.domain Domain used to load the captcha: `google.com` or `recaptcha.net`
|
|
@@ -429,7 +429,7 @@ class Solver {
|
|
|
429
429
|
* lang,
|
|
430
430
|
* textinstructions,
|
|
431
431
|
* pingback }} params Extra properties to pass to 2captcha.
|
|
432
|
-
* @param {
|
|
432
|
+
* @param {string} params.body Base64 image data for the captcha.
|
|
433
433
|
* @param {number} params.phrase Captcha contains two or more words? `1` - Yes. `0` - No.
|
|
434
434
|
* @param {number} params.regsense Captcha is case sensitive? `1` - Yes. `0` - No.
|
|
435
435
|
* @param {number} params.numeric `0` - not specified. `1` - captcha contains only numbers. `2` - captcha contains only letters. `3` - captcha contains only numbers OR only letters. `4` - captcha MUST contain both numbers AND letters.
|
|
@@ -1034,9 +1034,9 @@ class Solver {
|
|
|
1034
1034
|
* ### Bounding Box Method
|
|
1035
1035
|
*
|
|
1036
1036
|
* @param {{ image, textinstructions, imginstructions }} params Parameters Bounding Box Method as an object.
|
|
1037
|
-
* @param {
|
|
1038
|
-
* @param {
|
|
1039
|
-
* @param {
|
|
1037
|
+
* @param {string} params.image Image containing data for markup. The image must be encoded in `Base64` format.
|
|
1038
|
+
* @param {string} params.textinstructions Text will be shown to worker to help him to select object on the image correctly. For example: "*Select cars in the image*". **Optional parameter**, if the instruction already exists in the form of the `imginstructions`.
|
|
1039
|
+
* @param {string} params.imginstructions Image with instruction for worker to help him to select object on the image correctly. The image must be encoded in `Base64` format. **Optional parameter**, if the instruction already exists in the form of the `textinstructions`.
|
|
1040
1040
|
*
|
|
1041
1041
|
* @example
|
|
1042
1042
|
* solver.boundingBox({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2captcha/captcha-solver",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "JavaScript library for easy integration with the API of 2captcha captcha solving service to bypass reCAPTCHA, hCaptcha, funcaptcha, geetest and solve any other captchas.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|