Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sarperavci/capsolver-googlerecaptchav2bypass
A Selenium implementation to bypass Google Recaptcha V2 using Capsolver API.
https://github.com/sarperavci/capsolver-googlerecaptchav2bypass
bypass captcha-breaking google-recaptcha google-recaptcha-solver python recaptcha recaptcha-v2 selenium solver
Last synced: 6 days ago
JSON representation
A Selenium implementation to bypass Google Recaptcha V2 using Capsolver API.
- Host: GitHub
- URL: https://github.com/sarperavci/capsolver-googlerecaptchav2bypass
- Owner: sarperavci
- Created: 2024-04-26T22:37:50.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-30T11:01:24.000Z (7 months ago)
- Last Synced: 2024-04-30T12:40:10.944Z (7 months ago)
- Topics: bypass, captcha-breaking, google-recaptcha, google-recaptcha-solver, python, recaptcha, recaptcha-v2, selenium, solver
- Language: Python
- Homepage:
- Size: 1.93 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Capsolver GoogleRecaptchaV2 Bypass
[![Capsolver](docs/capsolver.png)](https://www.capsolver.com/?utm_source=github&utm_medium=ads&utm_campaign=scraping&utm_term=Capsolver-GoogleRecaptchaV2Bypass)
**Solve Google Recaptcha V2 in just one line of code!**
A Selenium implementation to bypass Google Recaptcha V2 using Capsolver API.
## Demo
![Demo](docs/demo.gif)
The captcha is solved in less than 2.5 seconds.
## Installation
To install the required packages, run the following command:
```bash
pip install -r requirements.txt
```## Usage
To use this script, you need to have a Capsolver account. You can create an account [here](https://www.capsolver.com/?utm_source=github&utm_medium=ads&utm_campaign=scraping&utm_term=Capsolver-GoogleRecaptchaV2Bypass) and get your API key. Once you have your API key, replace `YOUR_API_KEY` in the script with your actual API key.
Example usage:
```python
from CapsolverRecaptchaV2Bypasser import CapsolverRecaptchaV2Bypasser
from selenium import webdriverCAPSOLVER_API_KEY = "CAP-YOUR_API_KEY"
page_url = "https://google.com/recaptcha/api2/demo"
page_key = "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-" # This can be found in the data-sitekey attribute of the reCaptcha elementpage = webdriver.Chrome()
page.get( page_url )
recaptchaBypasser = CapsolverRecaptchaV2Bypasser(page, page_url, page_key, CAPSOLVER_API_KEY)
recaptchaBypasser.solve_recaptcha()
```
## TestTo test the script, edit the `test.py` file and replace `YOUR API KEY` with your actual API key. Then run the following command:
```bash
python test.py
```## Capsolver
Capsolver is a platform that provides APIs to solve CAPTCHAs. You can use Capsolver to bypass CAPTCHAs in your web scraping projects. The platform supports solving Google Recaptcha V2, Recaptcha V3, hCaptcha, FunCaptcha, GeeTest, and more. You can create an account [here](https://www.capsolver.com/?utm_source=github&utm_medium=ads&utm_campaign=scraping&utm_term=Capsolver-GoogleRecaptchaV2Bypass) and get your API key.