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
356 stars 59 forks source link

cannot import name 'sync_retry' from 'cf_clearance' #4

Closed jhuaraya closed 2 years ago

jhuaraya commented 2 years ago

Hi, I'm getting that error. im trying to run the example script:

from playwright.sync_api import sync_playwright
from cf_clearance import sync_retry, stealth_sync
import requests

ImportError: cannot import name 'sync_retry' from 'cf_clearance'

vvanglro commented 2 years ago

Oh, sorry, I forgot to update the example script. The latest package has changed the function name.

pip install --upgrade cf_clearance
from cf_clearance import sync_cf_retry