Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Takes too long #24

Open
ghost opened this issue Jul 25, 2018 · 10 comments
Open

Takes too long #24

ghost opened this issue Jul 25, 2018 · 10 comments

Comments

@ghost
Copy link

ghost commented Jul 25, 2018

The custom NonoCAPTCHA tab times out everytime whereas just opening a new tab to the same link works perfectly.

@mikeyy
Copy link
Owner

mikeyy commented Jul 25, 2018

I will need some more information to see if I can reproduce this. What operating system are you using? And is this with proxies?

@ghost
Copy link
Author

ghost commented Jul 25, 2018

Windows. This was a run without proxies, I changed deface.html a bit to finally get it to work (added a grecaptcha.render) but was met with status detected every attempt. Then tried proxies, still status detected.

@mikeyy
Copy link
Owner

mikeyy commented Jul 25, 2018

Unfortunately it doesn't get around being detected if your IP is marked as bad. I'm still looking into other possible ways they may be detecting us, such as a bad user-agent or if it's just a bad proxy in general. It's an ongoing process that is quite tedious considering I need to find a non-marked IP/proxy and hopefully get it to be detected and then non-detected on another go-around and see what the differences were.

I will take your method of adding a grecaptcha.render as an extra fallback incase the page fails to load. Sometimes initiating a page load event was required from Selenium to get the reCAPTCHA widget to load so it might be the same problem.

@ghost
Copy link
Author

ghost commented Jul 25, 2018

I pay for smartproxy.io which is very high quality residentials, I also hotspotted from my phone same result. I don't think it likes grecaptcha.render. I tried removing the deface altogether but it would error out.

@mikeyy
Copy link
Owner

mikeyy commented Jul 25, 2018

Could you try cloning the current branch on here and seeing if the code on line 156 works for you instead of grecaptcha.render?

var evt = document.createEvent('Event');
evt.initEvent('load', false, false);
window.dispatchEvent(evt);

If the page still fails to load then I will set-up a virtual machine with Windows later and do some testing there. In the mean-time I'm still doing more testing on possible ways for being detected that haven't yet been released on PyPI. Hoping we can figure this out and get it working for you.

@mikeyy mikeyy closed this as completed Jul 27, 2018
@mikeyy
Copy link
Owner

mikeyy commented Aug 1, 2018

This issue just appeared on my end while working with the reCAPTCHA's demo page, and I have reason to believe it was due to Content-Security-Policy. It didn't always happen though so I must have disregarded it. I have pushed a patch to the branch and will release it to PyPI sometime today or later this week. Considering most issues have been worked out, I've been slow on making any releases unless changes are discernible or to fix a nasty bug that breaks the library.

@mikeyy mikeyy reopened this Aug 1, 2018
mikeyy added a commit that referenced this issue Aug 1, 2018
Repository owner deleted a comment Aug 1, 2018
Repository owner deleted a comment Aug 1, 2018
@mikeyy
Copy link
Owner

mikeyy commented Aug 7, 2018

The issue seems resolved miyakogi/pyppeteer#121

@mikeyy mikeyy closed this as completed Aug 7, 2018
@mikeyy
Copy link
Owner

mikeyy commented Aug 7, 2018

Whoops, wrong issue...

@ghost
Copy link
Author

ghost commented Aug 7, 2018

Dang it. I thought it was fixed

@mikeyy
Copy link
Owner

mikeyy commented Aug 7, 2018

Actually, could you please give the latest release a try? It includes the bypass that enables scripts to execute on websites with an active Content-Security-Policy response header. I happened upon the issue when trying to deface the reCAPTCHA demo page and the reCAPTCHA widget wouldn't load. Hope this fixes it!

@mikeyy mikeyy reopened this Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant