sarperavci / CloudflareBypassForScraping

A cloudflare verification bypass script for webscraping
395 stars 72 forks source link

Not working #22

Open coolstar80 opened 1 month ago

coolstar80 commented 1 month ago

after recent commit it is still not working

sleepyzardo commented 1 month ago

whats not working?

sarperavci commented 1 month ago

It works, I just run test.py. Please elaborate your issue.

piddong commented 1 month ago

It works, I just run test.py. Please elaborate your issue. if self.driver.wait.ele_displayed('#GBddK6', timeout=1.5): self.log_message("Verification button found. Attempting to click.") self.driver.ele("#GBddK6", timeout=2.5).click()

Attempt 27: Verification page detected. Trying to bypass... Verification button found. Attempting to click. Attempt 28: Verification page detected. Trying to bypass... Verification button found. Attempting to click.

i use test.py but not working please double check

sarperavci commented 4 weeks ago

@piddong The latest commits should solve your problem. https://github.com/sarperavci/CloudflareBypassForScraping/commit/1845e19fa38ac91b9b1b015692c9e9bd77879f46

piddong commented 4 weeks ago

@piddong The latest commits should solve your problem. 1845e19

Good Work Thank you~

darchon7 commented 4 weeks ago

I just pulled the latest commit and tested test.py. It works on the 1st try but on consecutive trys, it just hangs at "Basic search failed. Searching for button recursively."

sarperavci commented 4 weeks ago

I just pulled the latest commit and tested test.py. It works on the 1st try but on consecutive trys, it just hangs at "Basic search failed. Searching for button recursively."

Please add some sleep time before the page loads. If it works on the first try, why do you need the consecutive attempts?

darchon7 commented 4 weeks ago

I don't know where to put the sleep time. I tried putting before driver.get but it still didn't work.

because I hit the same site over and over but on different pages to pull different data and consecutive tries won't have the captcha page.

darchon7 commented 4 weeks ago

nvm ignore my last post, I put a check before the cloudflarebypasser lines to check for the title to see if the cloudflare page came up or not and to skip if no page appears.

sarperavci commented 4 weeks ago

@darchon7 I see your issue and I can reproduce it. I will fix it ASAP.

darchon7 commented 3 weeks ago

@darchon7 I see your issue and I can reproduce it. I will fix it ASAP.

wow you're AWESOME!!!! thanks a bunch! and thanks for the AWESOME work!