Hey,
Since a few days now more and more often my puppeteer instances get detected by Google.
Trying to sign in no longer works.
After putting in my email it says that the browser is not safe to use.
Facing the same issue.
Any update on this?
+1
Yes, this has started in the last few days, I had written and tested a script for signing up on Gmail 15 days ago.
+1
I downgrade my plug in to 2.4.5 and is working now
downgrading really works
I downgrade my plug in to 2.4.5 and is working now
Can you help me I tried downgrading it to 2.4.5 the stealth plugin.
What would be the version of extra and puppeteer dependency?
all you need to do it is --> npm i [email protected]
Downgrading doesn't work for me.
[email protected]
[email protected]
[email protected]
const browser = await puppeteer.launch({headless: false});
const page = (await browser.pages())[0];
page.goto('https://accounts.google.com/SignOutOptions?continue=https%3A%2F%2Fstadia.google.com%2F');
all you need to do it is --> npm i [email protected]
Tried it didn鈥檛 work
Can you share a sample package.json file with me ? Showing the versions for dependencies that would be a big help
Tried it didn鈥檛 work
Can you share a sample package.json file with me ? Showing the versions for dependencies that would be a big help
{
"dependencies": {
"puppeteer": "^2.1.1",
"puppeteer-extra": "^3.1.9",
"puppeteer-extra-plugin-stealth": "^2.4.5"
}
}
Tried it didn鈥檛 work
Can you share a sample package.json file with me ? Showing the versions for dependencies that would be a big help
{ "dependencies": { "puppeteer": "^2.1.1", "puppeteer-extra": "^3.1.9", "puppeteer-extra-plugin-stealth": "^2.4.5" } }
Nope still getting the same error
Downgrading doesn't work for me.
Nope still getting the same error
I can only suggest setting the same options to puppeteer as me:
const browser = await puppeteer.launch({
args: [
"--no-sandbox",
"--headless",
"--disable-gpu",
"--window-size=1920x1080"
]
});
In my case I am getting detected using gmail, when i automate log in from one account (which i previously automated log in many times), but not from an account which I havnt previously used.
The downgrade didn't solve the issue for me.
Downgrading to 2.4.5 seems to fix this issue.
Any updates on an actual solution instead of just downgrading?
Add this line if you don鈥檛 want to downgrade.
await page.evaluateOnNewDocument(() => {
const newProto = navigator.__proto__
delete newProto.webdriver
navigator.__proto__ = newProto
});
Add this line if you don鈥檛 want to downgrade.
await page.evaluateOnNewDocument(() => { const newProto = navigator.__proto__ delete newProto.webdriver navigator.__proto__ = newProto });
confirm this works, thanks man!
I'm very curious to know how come so many people are scraping google, what are your use-cases? How are you using the scraped data?
@AdityaAnand1 ,
I was doing a proof-of-concept on automating login to Gmail, and Google will notice that you are using puppeteer if you are not using this package.
This is most likely fixed, closing until further notice:
https://github.com/berstend/puppeteer-extra/issues/213#issuecomment-678374178
Most helpful comment
Add this line if you don鈥檛 want to downgrade.