Skip to content

Commit

Permalink
style: pre-commit
Browse files Browse the repository at this point in the history
Signed-off-by: vvanglro <[email protected]>
  • Loading branch information
vvanglro committed Jul 13, 2023
1 parent f5d36a1 commit 3ddacf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ resp = requests.post("http://localhost:8000/challenge",
json={"proxy": {"server": proxy}, "timeout": 20,
"url": "https://nowsecure.nl"})
data = resp.json()
# In some cases, the cloudflare challenge will not be triggered, so when cf in the return parameter is true, it means that the challenge has been encountered.
# In some cases, the cloudflare challenge will not be triggered,
# so when cf in the return parameter is true, it means that the challenge has been encountered.
if data.get("success") and data.get("cf"):
ua = data.get("user_agent")
cf_clearance_value = data.get("cookies").get("cf_clearance")
Expand Down
3 changes: 2 additions & 1 deletion cf_clearance/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from importlib.metadata import version

from cf_clearance.retry import async_cf_retry, sync_cf_retry
from cf_clearance.stealth import StealthConfig, async_stealth, sync_stealth
from importlib.metadata import version

__version__ = version("cf_clearance")

Expand Down

0 comments on commit 3ddacf1

Please sign in to comment.