-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Any way to bypass cloudflare in headless chrome #847
Comments
You can use https://github.com/seleniumbase/SeleniumBase to do it.
And then run the following with from seleniumbase import Driver
from seleniumbase import page_actions
driver = Driver(headless=True, uc=True)
driver.get("https://nowsecure.nl")
page_actions.wait_for_text(driver, "OH YEAH, you passed!", "h1")
print(driver.find_element("css selector", "body").text)
screenshot_name = "now_secure_image.png"
driver.save_screenshot(screenshot_name)
print("\nScreenshot saved to: %s" % screenshot_name)
driver.quit() |
Thanks man you are a life saver! |
Chromedriver console open with Pyinstaller |
Chromedriver console open with Pyinstaller |
This was referenced Jan 8, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I wanted to scrape websites in headless now, it works flawlessly in normal chrome but cloudflare is causing issue in headless
Please give me any solution, even paid solution will be accepted, or new framework
The text was updated successfully, but these errors were encountered: