Library for automating captcha verification.
npm install captcha-solver> Library for automating captcha verification.
  

This module also has a CLI.
This module requires node >= 8.
``bash`
npm install --save captcha-solver
`js
const CaptchaSolver = require('captcha-solver')
const solver = new CaptchaSolver('browser')
const codes = await solver.solve()
`
#### Table of Contents
- CaptchaSolver
- provider
- createTask
- getTaskResult
Main entrypoint for solving captchas.
Type: function (provider, opts)
- provider (string | CaptchaSolverProvider) Name of built-in provider or an instance ofopts
a custom provider to use for solving.
- (optional, default {})
*
#### provider
Provider powering this solver.
Type: CaptchaSolverProvider
*
#### createTask
Creates a new captcha solving task.
Valid values for opts.type are:
- image-to-text
- recaptcha
- recaptcha-proxyless
- nocaptcha
- nocaptcha-proxyless
- funcaptcha
- funcaptcha-proxyless
Note that not all providers support all captcha types. See
provider.supportedTaskTypes for a Set containing all task types a given
provider supports.
Note that most of these options will be unused depending on the task type.
Type: function (opts)
- opts object Optionsopts.type
- string Type of captcha to solveopts.image
- (buffer \| string)? Path, URL, or buffer of an image to processopts.websiteURL
- string? Website URL for nocaptcha, recaptcha, and funcaptchaopts.websiteKey
- string? Recaptcha website keyopts.websiteSToken
- string? Secret token for old versions of Recaptchaopts.websitePublicKey
- string? Funcaptcha public keyopts.proxyType
- string? Proxy type (http/socks4/socks5)opts.proxyAddress
- string? Proxy IP address (ipv4/ipv6)opts.proxyPort
- (string \| number)? Proxy portopts.proxyLogin
- string? Proxy login for basic authopts.proxyPassword
- string? Proxy passwordopts.userAgent
- string? Browser's User-Agent to emulateopts.cookies
- string? Additional cookies to emulate
*
#### getTaskResult
Fetches the result of a previously created captcha solving task.
Type: function (taskId, opts)
- taskId string Unique task identifieropts
- object? Options (optional, default {})opts.retries
- number Number of retries to perform (optional, default 3)opts.timeout
- number Max timeout to wait in ms before aborting (optional, default 30000`)
*
- captcha-solver-cli - CLI for this module.
- puppeteer-email - Email automation driven by headless chrome.
- sms-number-verifier - Allows you to spoof SMS number verification.
- awesome-puppeteer - A curated list of awesome puppeteer resources.
Using this software to violate the terms and conditions of any third-party service is strictly against the intent of this software. By using this software, you are acknowledging this fact and absolving the author or any potential liability or wrongdoing it may cause. This software is meant for testing and experimental purposes only, so please act responsibly.
MIT © Travis Fischer