diff --git a/cfscrape/__init__.py b/cfscrape/__init__.py index 38debd4..841e427 100644 --- a/cfscrape/__init__.py +++ b/cfscrape/__init__.py @@ -96,6 +96,7 @@ def __init__(self, *args, **kwargs): # Define headers to force using an OrderedDict and preserve header order self.headers = headers + self.org_method = None self.mount("https://", CloudflareAdapter()) @@ -152,7 +153,13 @@ def solve_cf_challenge(self, resp, **original_kwargs): body = resp.text parsed_url = urlparse(resp.url) domain = parsed_url.netloc - submit_url = "%s://%s/cdn-cgi/l/chk_jschl" % (parsed_url.scheme, domain) + challenge_form = re.search(r'\
+
+
+
+
+
+
+
+
+
+
+ DDoS protection by Cloudflare
+
+ + Ray ID: 53d393f93ae1c82f + |
+
+