Skip to content

Commit

Permalink
Release 1.2.1
Browse files Browse the repository at this point in the history
Passed resp.text instead of resp to is_reCaptcha_Challenge() in Challenge_Response by mistake.
  • Loading branch information
VeNoMouS committed Oct 9, 2019
1 parent 0a54810 commit 99cf821
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloudscraper/__init__.py
Expand Up @@ -39,7 +39,7 @@

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

__version__ = '1.2.0'
__version__ = '1.2.1'

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

Expand Down Expand Up @@ -315,14 +315,14 @@ def reCaptcha_Challenge_Response(provider, provider_params, body, url):
# ------------------------------------------------------------------------------- #

def Challenge_Response(self, resp, **kwargs):
if self.is_reCaptcha_Challenge(resp.text):
if self.is_reCaptcha_Challenge(resp):
# ------------------------------------------------------------------------------- #
# double down on the request as some websites are only checking
# if cfuid is populated before issuing reCaptcha.
# ------------------------------------------------------------------------------- #

resp = super(CloudScraper, self).request(resp.request.method, resp.url, **kwargs)
if not self.is_reCaptcha_Challenge(resp.text):
if not self.is_reCaptcha_Challenge(resp):
return resp

# ------------------------------------------------------------------------------- #
Expand Down

0 comments on commit 99cf821

Please sign in to comment.