Skip to content

Commit

Permalink
Merge pull request #200 from EdmundMartin/patch-1
Browse files Browse the repository at this point in the history
Update __init__.py
  • Loading branch information
Anorov authored Mar 20, 2019
2 parents 7be44f7 + 05c5584 commit 63d6dd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cfscrape/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def solve_cf_challenge(self, resp, **original_kwargs):
try:
params["jschl_vc"] = re.search(r'name="jschl_vc" value="(\w+)"', body).group(1)
params["pass"] = re.search(r'name="pass" value="(.+?)"', body).group(1)
params["s"] = re.search(r'name="s"\svalue="(?P<s_value>[^"]+)', body).group('s_value')
except Exception as e:
# Something is wrong with the page.
# This may indicate Cloudflare has changed their anti-bot
Expand Down

0 comments on commit 63d6dd8

Please sign in to comment.