File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def general_request(
35
35
url : str ,
36
36
cookies : Optional [List [Cookie ]] = None ,
37
37
js_snippet : Optional [str ] = None ,
38
- proxy_type : Optional [ ProxyType ] = ProxyType .datacenter ,
38
+ proxy_type : ProxyType = ProxyType .datacenter ,
39
39
proxy_country : Optional [str ] = None ,
40
40
return_text : bool = False ,
41
41
wait_for_selector : Optional [str ] = None ,
@@ -47,8 +47,7 @@ def general_request(
47
47
if js_snippet is not None :
48
48
encoded_js_snippet = base64_encode_string (js_snippet )
49
49
request_data ['js_snippet' ] = encoded_js_snippet
50
- if proxy_type is not None :
51
- request_data ['proxy_type' ] = proxy_type
50
+ request_data ['proxy_type' ] = proxy_type
52
51
if proxy_country is not None :
53
52
request_data ['proxy_country' ] = proxy_country .lower ()
54
53
if wait_for_selector is not None :
You can’t perform that action at this time.
0 commit comments