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

Cloudflare prevents complete execution #12

Open
scottmeup opened this issue Feb 12, 2021 · 1 comment
Open

Cloudflare prevents complete execution #12

scottmeup opened this issue Feb 12, 2021 · 1 comment

Comments

@scottmeup
Copy link

When I run the bot it has been unable to get past cloudflare protection. I increased the sleep timeout to manually try the captchas but it seems that I'm given an endless loop of more captchas on the udemy site via cloudflare when using selenium.

I tried using undetected_chromedriver as a replacement to chromedriver but I've been experiencing an error with it at line 207:

https://github.com/dimakiss/Udemy_bot/blob/main/Udemy_bot.py#L207
elif is_account_exist(sys.argv[1], sys.argv[2]):

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 88 Current browser version is 87.0.4280.141 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

 

A couple of other thing's I've tried are manually specifying the chrome driver version / binary for undetected_chromedriver:

import undetected_chromedriver as uc
uc.TARGET_VERSION = 87
uc.install(
    executable_path='/usr/local/bin/chromedriver',
)

but it still gives the error above. There isn't currently a chrome 88 available when I check for updates.

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

2 participants
@scottmeup and others