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

I have tested this but its not working for gdtot site #29

Open
Gujjugaming2k opened this issue Aug 16, 2024 · 8 comments
Open

I have tested this but its not working for gdtot site #29

Gujjugaming2k opened this issue Aug 16, 2024 · 8 comments

Comments

@Gujjugaming2k
Copy link

I have tested this but its not working

I tried to do bypass using you code but nothing happen its showing bypass successful but not done in actual.

below are the test link
https://new5.gdtot.dad/file/7340685321

@sarperavci
Copy link
Owner

Hello, please check the lines 67 and 68
https://github.com/sarperavci/CloudflareBypassForScraping/blob/main/test.py

So modify your code from:

        logging.info('Starting Cloudflare bypass.')
        cf_bypasser = CloudflareBypasser(driver)

        # If you are solving an in-page captcha (like the one here: https://seleniumbase.io/apps/turnstile), use cf_bypasser.click_verification_button() directly instead of cf_bypasser.bypass().
        # It will automatically locate the button and click it. Do your own check if needed.

        cf_bypasser.bypass()

To:

        logging.info('Starting Cloudflare bypass.')
        cf_bypasser = CloudflareBypasser(driver)

        # If you are solving an in-page captcha (like the one here: https://seleniumbase.io/apps/turnstile), use cf_bypasser.click_verification_button() directly instead of cf_bypasser.bypass().
        # It will automatically locate the button and click it. Do your own check if needed.

        cf_bypasser.click_verification_button() 

@Gujjugaming2k
Copy link
Author

great able to do that, any idea about save html I mean to say,

save html page before close the browser

@sarperavci
Copy link
Owner

great able to do that, any idea about save html I mean to say,

save html page before close the browser

Check this to get html content #2 (comment)

@Gujjugaming2k
Copy link
Author

Thank you man, can you please help last thing ?
fetch onclick (Button) value from page

I want to extract "https://t.me/gdbot3_bot?start=v4w4a4a4EwKOf5D4KoGfDfw4" from above page, I have bypass cloudflare but after that we are not able to extract info, below are the html tag from that I want to fetch onclick value

"button onclick="myDl2('https://t.me/gdbot3_bot?start=v4w4a4a4EwKOf5D4KoGfDfw4')" id="dirdown" type="button" class="btn btn-outline-light btn-user font-weight-bold"> Telegram Download</button"

@Gujjugaming2k
Copy link
Author

Gujjugaming2k commented Aug 16, 2024

Done found the solution, Close now

@Gujjugaming2k
Copy link
Author

Reopening the issue with same code, I have tried with HEADLESS = true due tot this we are not able to bypass the cloudflare in log its showing, but when I extracted html data its still showing solve the captcha let us know anything else required for linux os?

INFO - Starting Cloudflare bypass.
Verification button found. Attempting to click.

@Gujjugaming2k Gujjugaming2k reopened this Aug 16, 2024
@Gujjugaming2k
Copy link
Author

I have taken screenshot also before verification and after verification

As I checked cloudflare is loaded successfully before verification but once its going to click its showing error having trouble in cloudflare Added both screenshot as well

After_CF
Before_CF

@Ash-Olorenshaw
Copy link

Reopening the issue with same code, I have tried with HEADLESS = true due tot this we are not able to bypass the cloudflare in log its showing, but when I extracted html data its still showing solve the captcha let us know anything else required for linux os?

INFO - Starting Cloudflare bypass. Verification button found. Attempting to click.

Cloudflare usually automatically blocks headless browsers. You'll probably need to run the browser nonheadless through pyvirtualdisplay.

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

3 participants