-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kkoooqq
committed
Jan 14, 2022
1 parent
c0c98b6
commit c54ccf7
Showing
6 changed files
with
67 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
const {FakeBrowser} = require('fakebrowser') | ||
const RecaptchaPlugin = require('puppeteer-extra-plugin-recaptcha') | ||
|
||
!(async () => { | ||
const builder = new FakeBrowser.Builder() | ||
.displayUserActionLayer(true) | ||
.vanillaLaunchOptions({ | ||
headless: false, | ||
}) | ||
.usePlugins([ | ||
RecaptchaPlugin({ | ||
provider: { | ||
id: '2captcha', | ||
token: 'XXXXXXX', // REPLACE THIS WITH YOUR OWN 2CAPTCHA API KEY ⚡ | ||
}, | ||
visualFeedback: true, // colorize reCAPTCHAs (violet = detected, green = solved) | ||
}), | ||
]) | ||
.userDataDir('./fakeBrowserUserData7') | ||
|
||
const fakeBrowser = await builder.launch() | ||
const page = await fakeBrowser.vanillaBrowser.newPage() | ||
await page.goto('https://google.com') | ||
|
||
})() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters