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

colab.research.google.com #2

Open
tomazov opened this issue May 7, 2024 · 0 comments
Open

colab.research.google.com #2

tomazov opened this issue May 7, 2024 · 0 comments

Comments

@tomazov
Copy link

tomazov commented May 7, 2024

how to run test.py on colab.research.google.com?

this code doesn't work 😞

!git clone https://github.com/sarperavci/GoogleRecaptchaBypass
%cd GoogleRecaptchaBypass
!pip install --no-build-isolation -r requirements.txt
!apt-get install ffmpeg

import os
from DrissionPage import ChromiumPage
from RecaptchaSolver import RecaptchaSolver
import time

!apt update
!apt install chromium-chromedriver
!pip install selenium

from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
driver = webdriver.Chrome(options=options)
recaptchaSolver = RecaptchaSolver(driver)
driver.get("https://www.google.com/recaptcha/api2/demo")
print(f"Page title: {driver.title}")

recaptchaSolver.solveCaptcha()

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