capsolver-npm
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -5,3 +5,3 @@ const CapSolver = require('../src/CapSolver'); | ||
(async function () { | ||
await handler.hcaptchaenterprise('https://hcaptcha.com/', '00000000-0000-0000-0000-000000000000', {'proxy':'packetstream.lemonclub.io:31112:lemonclub9ghnwi75:zfT9QS3YCRpFoDwq_country-US_session-LemonClub6nLQAILm'}) | ||
await handler.hcaptchaenterprise('https://hcaptcha.com/', '00000000-0000-0000-0000-000000000000', {'proxy':'proxy.provider.io:23331:user1:password1'}) | ||
.then(response => { | ||
@@ -8,0 +8,0 @@ if (response.error === 0) { |
@@ -7,9 +7,5 @@ PM2 Benchmark | ||
1. Install pm2 globally: `npm install -g pm2`. | ||
2. Set [pm2 config file](https://github.com/0qwertyy/capsolver-npm/blob/master/examples/ecosystem.config.js) as your preference. | ||
2. Set [pm2 config file](https://github.com/0qwertyy/capsolver-npm/blob/master/examples/pm2/ecosystem.config.js) as your preference. | ||
3. Navigate to `./node_modules/capsolver-npm/examples/pm2/`. | ||
4. Control processes: `pm2 start ecosystem.config.js` & `pm2 delete all`. | ||
5. Print logs for all process: `pm2 logs`. | ||
- [screenshot](https://s3.gifyu.com/images/webstorm64_pvt9zUKloT.gif) | ||
[*Building fast test-project with capsolver-npm](https://www.youtube.com/watch?v=s9OyE_pBPyE) | ||
5. Print logs for all process: `pm2 logs`. |
{ | ||
"name": "capsolver-npm", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/CapSolver.js", |
@@ -6,5 +6,5 @@ # capsolver.com api wrapper🧠 | ||
now binded: *🔥 AntiTurnstile. 🔥 AntiCloudflare. 🔥 Geetest V4.* | ||
*🔥 [HCaptchaTurboTask (highest pass/valid rate).](https://github.com/0qwertyy/capsolver-npm/blob/master/examples/hcaptcha_turbo.js) 🔥 AntiCloudflare.* | ||
[![](https://img.shields.io/badge/1.0.4-capsolver--npm-darkgreen?logo=npm&logoColor=white)](https://www.npmjs.com/package/capsolver-npm) | ||
[![](https://img.shields.io/badge/1.0.5-capsolver--npm-darkgreen?logo=npm&logoColor=white)](https://www.npmjs.com/package/capsolver-npm) | ||
[![](https://img.shields.io/badge/documentation-docs.capsolver.com-darkgreen)](https://docs.capsolver.com/guide/getting-started.html) | ||
@@ -171,2 +171,6 @@ | ||
await handler.hcaptchaproxyless(websiteURL, websiteKey, userAgent, isInvisible, enterprisePayload) | ||
await handler.hcaptchaenterprise(websiteURL, websiteKey, proxyInfo, userAgent, isInvisible, enterprisePayload) | ||
await handler.hcaptchaenterpriseproxyless(websiteURL, websiteKey, userAgent, isInvisible, enterprisePayload) | ||
await handler.hcaptchaturbo(websiteURL, websiteKey, proxyInfo, userAgent, isInvisible, enterprisePayload) // proxy required | ||
await handler.hcaptchaclassification(question, base64) | ||
@@ -228,5 +232,2 @@ ``` | ||
**Currently unsupported API methods:** | ||
❌ ReCaptchaV2Classification ❌ VoiceRecognition ❌ Turnstile ❌ Cloudflare Challenge | ||
Verbose level | ||
@@ -233,0 +234,0 @@ - |
@@ -133,2 +133,14 @@ const Tasker = require("./Tasker"); | ||
async hcaptchaturbo(websiteURL, websiteKey, proxyInfo, userAgent=null, isInvisible=null, enterprisePayload=null){ | ||
let tasker = new Tasker('HCaptchaTurboTask', this.apikey, this.verbose); | ||
tasker.taskData.websiteURL = websiteURL; | ||
tasker.taskData.websiteKey = websiteKey; | ||
tasker.taskData.isEnterprise = true; | ||
if(userAgent!==null) { tasker.taskData.userAgent = userAgent; } | ||
if(isInvisible!==null) { tasker.taskData.isInvisible = true; } | ||
if(enterprisePayload!==null) { tasker.taskData.isEnterprise = true; tasker.taskData.enterprisePayload = enterprisePayload; } | ||
this.attachProxy(tasker, proxyInfo); | ||
return await tasker.execute(this.rqdelay); | ||
} | ||
async hcaptchaenterpriseproxyless(websiteURL, websiteKey, userAgent=null, isInvisible=null, enterprisePayload=null){ | ||
@@ -135,0 +147,0 @@ let tasker = new Tasker('HCaptchaEnterpriseTaskProxyLess', this.apikey, this.verbose); |
@@ -78,2 +78,12 @@ class Validation { | ||
this.parameters.HCaptchaTurboTask = | ||
[ | ||
{ name:'websiteURL', required: true, type: 'string' }, { name:'websiteKey', required: true, type: 'string' }, | ||
{ name:'proxyType', required: false, type: 'string' }, { name:'proxyAddress', required: false, type: 'string' }, | ||
{ name:'proxyPort', required: false, type: 'number' }, { name:'proxyLogin', required: false, type: 'string' }, | ||
{ name:'proxy', required: false, type: 'string' }, { name:'proxyPassword', required: false, type: 'string' }, | ||
{ name:'isInvisible', required: false, type: 'boolean' }, { name:'isEnterprise', required: false, type: 'boolean' }, | ||
{ name:'enterprisePayload', required: false, type: 'object' }, { name:'userAgent', required: false, type: 'string' } | ||
]; | ||
this.parameters.HCaptchaClassification = | ||
@@ -80,0 +90,0 @@ [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101896
32
1060
249