vvanglro / cf-clearance

Purpose To make a cloudflare v2 challenge pass successfully, Can be use cf_clearance bypassed by cloudflare, However, with the cf_clearance, make sure you use the same IP and UA as when you got it.
https://github.com/vvanglro/cf_clearance
353 stars 58 forks source link

timeout parameter in json body not work on page timeout controll #26

Closed rob-in-the-house closed 1 year ago

rob-in-the-house commented 1 year ago

Hi vvanglro, It seems timeout is only for outside io event, but could you consider add page timeout parameter which helps to prevent exiting too earlier in long session request?

return await asyncio.wait_for(pw_challenge(data), timeout=data.timeout)

vvanglro commented 1 year ago

page.goto function default 30s timeout. It is not recommended to set the timeout to be very long, and challenge again if there is no return within 10s. It is recommended to use an elite proxy.