From 11a6ef7d08d396e8b5c6cb89013bfa138608b8ae Mon Sep 17 00:00:00 2001 From: VeNoMouS Date: Sat, 27 Aug 2022 22:14:47 +1200 Subject: [PATCH] Release 1.2.62 --- cloudscraper/__init__.py | 2 +- cloudscraper/cloudflare.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudscraper/__init__.py b/cloudscraper/__init__.py index ce6c0c0..0fb0741 100644 --- a/cloudscraper/__init__.py +++ b/cloudscraper/__init__.py @@ -38,7 +38,7 @@ # ------------------------------------------------------------------------------- # -__version__ = '1.2.61' +__version__ = '1.2.62' # ------------------------------------------------------------------------------- # diff --git a/cloudscraper/cloudflare.py b/cloudscraper/cloudflare.py index 8738a59..14fcb2c 100644 --- a/cloudscraper/cloudflare.py +++ b/cloudscraper/cloudflare.py @@ -132,7 +132,7 @@ def is_Captcha_Challenge(resp): resp.headers.get('Server', '').startswith('cloudflare') and resp.status_code == 403 and re.search( - r'action="/\S+__cf_chl_captcha_tk__=\S+', + r'''action="/\S+__cf_chl(|_f)_tk=\S+''', resp.text, re.M | re.DOTALL )