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

About Captcha bypassing #8

Open
bansaripanseriya opened this issue May 29, 2024 · 1 comment
Open

About Captcha bypassing #8

bansaripanseriya opened this issue May 29, 2024 · 1 comment

Comments

@bansaripanseriya
Copy link

When i tried to scrape it frequently it is showing captcha. Can anyone help me with this? Like how to bypass that captcha using proxy? How to implement proxy in selenium?

@MariyaSha
Copy link
Owner

Sorry for the delayed response @bansaripanseriya, I haven't been active on Github issues since the inception of my account 😅

I just published a CAPTCHA solving tutorial, not with Selenium though, but with another cool library named Python Playwright.
Here's the tutorial repository:
https://github.com/MariyaSha/Playwright_WebScraping

And here's a link to the YouTube tutorial it was designed for:
https://youtu.be/RGR5Xj0Qqfs

The CAPTCHA bypassing mechanism uses Bright Data's Web Unlocker (a combination of proxies and other security bypassing tools), and there's a $15 coupon for it in the description of the video on YouTube.

I didn't check the following Selenium implementation on my end, but it should be similar to this (based on my Playwright implementation from the Repo link above):

# please fill in your details
proxy_server = "http://brd.superproxy.io:33335"
proxy_username = "brd-customer-<customer_id>-zone-<zone-name>"
proxy_password = "<zone-password>"

my_options = {
    "proxy": {
        "https": f"https://{proxy_username}:{proxy_password}@{proxy_server}",
        "http": f"http://{proxy_username}:{proxy_password}@{proxy_server}",
    }
}
driver = webdriver.Chrome(seleniumwire_options=my_options)

I hope it works on your end! :)

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