Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fdciabdul/puppeteer-recaptcha-bypass
https://github.com/fdciabdul/puppeteer-recaptcha-bypass
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fdciabdul/puppeteer-recaptcha-bypass
- Owner: fdciabdul
- Created: 2023-10-10T13:42:35.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-07T20:24:05.000Z (7 months ago)
- Last Synced: 2024-08-10T10:53:35.505Z (about 2 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Puppeteer-Recaptcha-Bypass
Solving recaptcha with puppeteer , original from [danielgatis](https://github.com/danielgatis/puppeteer-recaptcha-solver) but with some improvment and more fix bug
### Requirements :- puppeteer latest version
- wit.ai api key ( get in https://wit.ai/ )### install
`npm install puppeteer-recaptcha-bypass`
### example :
```javascript
const puppeteer = require("puppeteer");
const Solver = require("puppeteer-recaptcha-bypass");(async () => {
const browser = await puppeteer.launch({
headless: false,
args: [
"--window-position=000,000",
"--no-sandbox",
"--disable-dev-shm-usage",
"--disable-web-security",
"--disable-features=IsolateOrigins",
" --disable-site-isolation-trials",
],
});
const page = await browser.newPage();
await page.goto("https://www.google.com/recaptcha/api2/demo");const apiKey = "WIT.AI API KEY";
const captchaResponse = await Solver(page, apiKey);console.log("Solved CAPTCHA:", captchaResponse);
await browser.close();
})();
```the arguments
```
"--disable-dev-shm-usage",
"--disable-web-security",
"--disable-features=IsolateOrigins",
" --disable-site-isolation-trials",
```
is neccesary , you must include them