📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

captcha-rec

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

captcha-rec

> Base on Lianzhong CAPTCHA Recognition online [Lianzhong](https://www.jsdati.com/) using Node.js to break CAPTCHA.

1.0.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

CAPTCHA Recognition using Node.js

Base on Lianzhong CAPTCHA Recognition online Lianzhong using Node.js to break CAPTCHA.

Requirements

This module requires a minimum of Node v6.9.0

Getting Started

To begin, you'll need to install captcha-rec:

npm i captcha-rec 
// or yarn add captcha-rec

using in Node.js

const Captcha = require('captcha-rec')
const captcha = new Captcha({
  username: '',    // Lianzhong username, see below [Options](## Options)
  password: '',    // Lianzhong password, see below
  type: ''         // CAPTCHA type, see below
}) 

// 1.using local file
const fs = require('fs')
captcha.recon(fs.createReadStream('test.png')).then(result => {
  console.log('recon result', result.value)
  // report ID result.reportId
}).catch(err => {
  console.error('err', err)
})

// 2. using remote images
captcha.recon('https://example.com/test.png').then(result => {
  console.log('recon result', result.value)
  // report ID result.reportId
}).catch(err => {
  console.error('err', err)
})

Options

  • username Lianzhong username, you should register on the websites Lianzhong
  • password Lianzhong password, you should register on the websites Lianzhong
  • type CAPTCHA type, see Type and Price

API

  • captcha.recon(imgSrc, type)
    • imgSrc image src or image eadStream
    • type CAPTCHA type
    • return <Promise>

The main method to recognition the CAPTCHA.

  • captcha.report(reportId)
    • reportId CAPTCHA reportId
    • return <Promise>

If the recognition result no correct, you can report the result to the Lianzhong, help them to correction the result.

Keywords

CAPTCHA

FAQs

Package last updated on 30 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts