question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there an existing issue for this?

  • I have searched the existing issues

I’m submitting a …

Description

bro this code does not go forward in recaptcha so here is the idea of a recapthca solver try it out bro

r = sr.Recognizer()
try:
            delay()
            frames = driver.find_elements_by_tag_name("iframe")
            recaptcha_control_frame = None
            recaptcha_challenge_frame = None
            for index, frame in enumerate(frames):
                if re.search('reCAPTCHA', frame.get_attribute("title")):
                    recaptcha_control_frame = frame

                if re.search('recaptcha challenge', frame.get_attribute("title")):
                    recaptcha_challenge_frame = frame
            if not (recaptcha_control_frame and recaptcha_challenge_frame):
                print("[ERR] Unable to find recaptcha. Abort solver.")

            delay()
            frames = driver.find_elements_by_tag_name("iframe")
            driver.switch_to.frame(recaptcha_control_frame)
            driver.find_element_by_class_name(
                "recaptcha-checkbox-border").click()

            delay()
            driver.switch_to.default_content()
            frames = driver.find_elements_by_tag_name("iframe")
            driver.switch_to.frame(recaptcha_challenge_frame)

            time.sleep(10)
            driver.find_element_by_id("recaptcha-audio-button").click()

            try:
                driver.switch_to.default_content()
                frames = driver.find_elements_by_tag_name("iframe")
                driver.switch_to.frame(recaptcha_challenge_frame)

                delay()
                src = driver.find_element_by_id(
                    "audio-source").get_attribute("src")

                path_to_mp3 = os.path.normpath(
                    os.path.join(os.getcwd(), "sample.mp3"))
                path_to_wav = os.path.normpath(
                    os.path.join(os.getcwd(), "sample.wav"))

                urllib.request.urlretrieve(src, path_to_mp3)
            except:
                driver.quit()
                # os.system("check.exe")

            try:
                sound = pydub.AudioSegment.from_mp3(path_to_mp3)
                sound.export(path_to_wav, format="wav")
                sample_audio = sr.AudioFile(path_to_wav)
            except Exception:
                driver.close()
                driver.quit()

            delay()
            r = sr.Recognizer()
            with sample_audio as source:
                audio = r.record(source)
            key = r.recognize_google(audio)

            delay()
            driver.find_element_by_id("audio-response").send_keys(key.lower())
            driver.find_element_by_id("audio-response").send_keys(Keys.ENTER)
        except:
            driver.quit()

Environment

- OS : windows 
- Python : 3.9
- Script version : 1.6.7

config.json

{
    "http_api": {
        "enabled": true,
        "host": "0.0.0.0",
        "port": 5000
    },
    "database": true,
    "views": 100,
    "minimum": 85.0,
    "maximum": 95.0,
    "proxy": {
        "category": "f",
        "proxy_type": false,
        "filename": false,
        "authentication": false,
        "proxy_api": false,
        "refresh": 0.0
    },
    "background": false,
    "bandwidth": true,
    "playback_speed": 1,
    "max_threads": 5,
    "min_threads": 2
}

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:32 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
furjaccommented, Dec 1, 2022

Bro a doubt what happens if we run a bot on random video without there consent as u said 🙄 is there any issue

1reaction
MShawoncommented, Dec 1, 2022

Free proxies won’t do any good… it’s just there to get people started to see how this works… This captcha thing only appears in free proxies…

Opening someone’s video for a second or something is not the right thing to do. You shouldn’t open someone’s video in a view bot without their consent.

https://github.com/MShawon/YouTube-Viewer#traffic-sources as mentioned there you already get suggested views from this bot… Just use multiple videos to get suggested views from those videos

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReCaptcha Solver
Verify google ReCaptcha automatically with 2captcha, DeathByCaptcha, ImageTyperz, Anti-Captcha, BestCaptchaSolver And EndCaptcha Without API ...
Read more >
2Captcha: Captcha Solving Service, reCAPTCHA Recognition ...
Fastest online captcha solving service. From $1.00 for 1000 captchas. API: PHP, Python, C++, JAVA, C#.
Read more >
Anti Captcha: Captcha Solving Service. Bypass Recaptcha ...
Browser plugin. Solve Recaptchas and image captchas with our free captcha solver tool for your browser - No user interaction required - Integrates...
Read more >
recaptcha-v2-captcha-solver · GitHub Topics
C# library for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other...
Read more >
CaptchaAI - The 1st "reCAPTCHA", "hCaptcha" OCR Solver
Supports 27,500 + image captchas, reCAPTCHA v2, Invisible reCAPTCHA, Solve Media, etc. SUPPORTED CAPTCHA TYPES. reCAPTCHA v2 100% accuracy.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found