Skip to content

Commit

Permalink
Cloudflare Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sarperavci committed Jul 25, 2024
1 parent 41713b7 commit e6292c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CloudflareBypasser.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ def __init__(self, driver: ChromiumPage):
def clickCycle(self):
#reach the captcha button and click it
# if iframe does not exist, it means the page is already bypassed.
if self.driver.wait.ele_displayed('#turnstile-wrapper',timeout=1.5):
if self.driver.wait.ele_displayed('.spacer',timeout=1.5):
time.sleep(1.5)
self.driver.ele("#turnstile-wrapper", timeout=2.5).click()
self.driver.ele(".spacer", timeout=2.5).click()
# The location of the button may vary time to time. I sometimes check the button's location and update the code.

def isBypassed(self):
Expand Down

0 comments on commit e6292c7

Please sign in to comment.