semvec/pypi-packages huggingface dataset:
recaptcha-breaker 1.0.1
Google Recaptcha solver.
Requires Python: >=3.6

<h1 align="center">recaptcha_breaker - Google Recaptcha solver.</h1>

<br>

<h1 align="center"> -Installation- </h1>

```sh
pip install recaptcha_breaker
```

<h1 align="center"> -How to use- </h1>

```python
import recaptcha_breaker as rb

for obj in rb.solveRecaptcha('captcha.png'): #captcha.png must be how in example.png in repo
	print(obj[2]) #object name
	print(obj[0], obj[1]) #x and y on image
```

<h1 align="center"> -Selenium captcha.png get example- </h1>

```python
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions as EC
from random import uniform

####selenium initialization###

def hover(element):
    hov = ActionChains(driver).move_to_element(element)
    hov.perform()

driver.get('https://www.google.com/recaptcha/api2/demo')
recaptchaFrame = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.TAG_NAME, 'iframe')))
frameName = recaptchaFrame.get_attribute('name')
driver.switch_to.frame(frameName)
CheckBox = WebDriverWait(driver, 10).until(
    EC.presence_of_element_located((By.ID, "recaptcha-anchor"))
)

rand = uniform(1.0, 1.5)
sleep(rand)
hover(CheckBox)

rand = uniform(0.5, 0.7)
sleep(rand)
clickReturn = CheckBox.click()

driver.switch_to.parent_frame()
recaptchaFrame = WebDriverWait(driver, 10).until(EC.presence_of_all_elements_located((By.TAG_NAME, 'iframe')))
frameName = recaptchaFrame[1].get_attribute('name')

rand = uniform(1, 3)
sleep(rand)

i = int(driver.execute_script('''frames = top.window.frames;
for (var i = 0; i < frames.length; i++) {
    if (frames[i].document.getElementById('rc-imageselect') != null) {
        return i;
    }
}'''))

pngimg = recaptchaFrame[i].screenshot_as_png
with open('captcha.png', 'wb') as f:
	f.write(pngimg)

#Well done!!!
```