From b21ab6acfb6a426923fa7f9fcd62c3a3eef24fbd Mon Sep 17 00:00:00 2001 From: kwest j arcade Date: Thu, 23 Apr 2020 08:11:34 +0300 Subject: [PATCH] Update __init__.py --- cfscrape/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfscrape/__init__.py b/cfscrape/__init__.py index 251dc29..65db733 100644 --- a/cfscrape/__init__.py +++ b/cfscrape/__init__.py @@ -250,7 +250,7 @@ def solve_challenge(self, body, domain): javascript = next(filter(lambda w: "jschl-answer" in w,all_scripts)) #find the script tag which would have obfuscated js challenge, ms = re.search( r"setTimeout\(function\(\){\s*(var " - r"s,t,o,p,b,r,e,a,k,i,n,g,f.+?\r?\n[\s\S]+?a\.value\s*=.+?)\r?\n" + r"s,t,o,p,.?b,r,e,a,k,i,n,g,f.+?\r?\n[\s\S]+?a\.value\s*=.+?)\r?\n" r"(?:[^{<>]*},\s*(\d{4,}))?", javascript, flags=re.S ).groups()