https://github.com/millenniumearl/recaptcha-harvester
https://github.com/millenniumearl/recaptcha-harvester
captcha-harvester electron recaptcha recaptcha-v2
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/millenniumearl/recaptcha-harvester
- Owner: MillenniumEarl
- Created: 2021-08-27T14:52:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-13T20:47:45.000Z (over 1 year ago)
- Last Synced: 2025-01-13T21:34:28.461Z (over 1 year ago)
- Topics: captcha-harvester, electron, recaptcha, recaptcha-v2
- Language: TypeScript
- Homepage:
- Size: 1.13 MB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 59
-
Metadata Files:
- Readme: README.md
- Security: security/cert.key
Awesome Lists containing this project
README
# recaptcha-harvester
`recaptcha-harvester` is a simple interface for harvesting Captcha tokens locally.
This project is based on `ez-harvest` created by Kelvin Fichter.

## Overview
`recaptcha-harvester` is designed to make Captcha harvesting as easy as possible for bot and/or user in Electron applications or APIs.
**Currently, it only supports ReCaptcha V2**
## Getting Started
### Requirements
`recaptcha-harvester` requires [Node.js](https://nodejs.org/en/).
### Installation
If you're a programmer who's including `recaptcha-harvester` as part of their application, then you can easily install it via `npm`:
```
$ npm install --save recaptcha-harvester
```
### Usage
The ability to request Captcha tokens from a user is the most powerful feature of `recaptcha-harvester`. If you're using `recaptcha-harvester` to do this, you probably want to start it from your Node application. A working example is included in [src/example.ts](https://github.com/MillenniumEarl/recaptcha-harvester/blob/master/src/example.ts)
```js
// Import recaptcha-harvester
const RecaptchaHarvester = require('recaptcha-harvester');
// Create a new instance of ezHarvest
const harvester = new RecaptchaHarvester();
// Start the server up
await harvester.start();
// Fetch the token
const data = await harvester.getCaptchaToken("https://my-website-here", "UNIQUE-SITE-KEY");
console.log(`Token retrieved: ${data.token}`);
// Stop the harvester
harvester.stop();
```