UNPKG

2.37 kBMarkdownView Raw
1[![npm][npm]][npm-url]
2[![deps][deps]][deps-url]
3[![Install Size][size]][size-url]
4[![Downloads][downloads]][downloads-url]
5
6- [About](#about)
7 - [How to install](#how-to-install)
8 - [Commands](#commands)
9- [Getting started](#getting-started)
10
11## About
12
13captcha-harvester spins up a localhost server to harvest captchas from supremenewyork. Uses [puppeteer](https://github.com/GoogleChrome/puppeteer) project to open chromium browsers. Google account one click support via cookies. Cookies can be retrieved via a basic request to `localhost:3001/fetch`. Captcha tokens are removed on successful fetch.
14
15### How to install
16
17Installing from [npm](https://www.npmjs.com/package/captcha-harvester) is the easiest way to get up and running.
18
19npm: `npm install captcha-harvester -g`
20yarn: `yarn global add captcha-harvester`
21
22### Commands
23
24captcha-harvester supports a few commands to make things easy.
25
26- `captcha-harvester -h|--help` - Returns all available commands.
27- `captcha-harvester init|initialize` - Initialize captcha preferences.
28- `captcha-harvester sg|setgoogle` - Set Google account to be used.
29- `captcha-harvester hc|harvestcaptcha` - Starts localhost server to harvest captcha tokens.
30
31## Getting started
32
33After installation to increase our likelihood of getting one-clicks, we are going to first initalize captcha-harvester with `captcha-harvester init` then we can run `captcha-harvester sg` to set the google account we are going to use. Your Google account information is stored locally in your appdata path.
34
35```sh
36captcha-harvester init
37captcha-harvester sg
38captcha-harvester hc
39```
40
41You now have a captcha-harvester running at `localhost:3001`. To retrieve captcha tokens make a request to `loclahost:3001/fetch`.
42
43[deps]: https://img.shields.io/endpoint.svg?url=https%3A%2F%2Funtitled-m9syrx0900b2.runkit.sh%2Fdeps
44[deps-url]: https://david-dm.org/0xhjohnson/captcha-harvester
45[downloads]: https://img.shields.io/endpoint.svg?url=https%3A%2F%2Funtitled-m9syrx0900b2.runkit.sh%2Fdownloads
46[downloads-url]: https://www.npmjs.com/package/captcha-harvester
47[npm]: https://img.shields.io/endpoint.svg?url=https%3A%2F%2Funtitled-m9syrx0900b2.runkit.sh%2Fnpm
48[npm-url]: https://www.npmjs.com/package/captcha-harvester
49[size]: https://packagephobia.now.sh/badge?p=captcha-harvester
50[size-url]: https://packagephobia.now.sh/result?p=captcha-harvester