Skip to content

Commit

Permalink
Release 1.2.61
Browse files Browse the repository at this point in the history
  • Loading branch information
VeNoMouS committed Aug 27, 2022
1 parent d54abb0 commit bddf8a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cloudscraper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# ------------------------------------------------------------------------------- #

__version__ = '1.2.60'
__version__ = '1.2.61'

# ------------------------------------------------------------------------------- #

Expand Down
6 changes: 2 additions & 4 deletions cloudscraper/cloudflare.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,10 @@ def is_New_IUAM_Challenge(resp):
resp.headers.get('Server', '').startswith('cloudflare')
and resp.status_code in [429, 503]
and re.search(
r'cpo.src\s*=\s*"/cdn-cgi/challenge-platform/\S+orchestrate/jsch/v1',
r'''cpo.src\s*=\s*['"]/cdn-cgi/challenge-platform/\S+orchestrate/jsch/v1''',
resp.text,
re.M | re.S
)
and re.search(r'window._cf_chl_enter\s*[\(=]', resp.text, re.M | re.S)
)
except AttributeError:
pass
Expand All @@ -112,11 +111,10 @@ def is_New_Captcha_Challenge(self, resp):
return (
self.is_Captcha_Challenge(resp)
and re.search(
r'cpo.src\s*=\s*"/cdn-cgi/challenge-platform/\S+orchestrate/(captcha|managed)/v1',
r'''cpo.src\s*=\s*['"]/cdn-cgi/challenge-platform/\S+orchestrate/(captcha|managed)/v1''',
resp.text,
re.M | re.S
)
and re.search(r'\s*id="trk_captcha_js"', resp.text, re.M | re.S)
)
except AttributeError:
pass
Expand Down

0 comments on commit bddf8a2

Please sign in to comment.