Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -30,11 +30,11 @@ def chrome(url:str=None,wait:int=5,header:str=None):
|
|
30 |
|
31 |
driver = webdriver.Chrome(options=options)
|
32 |
|
33 |
-
print(unquote(header_list))
|
34 |
try:
|
35 |
if header_list == None:
|
36 |
pass
|
37 |
else:
|
|
|
38 |
header_array = json.loads(unquote(header_list))
|
39 |
driver.header_overrides = header_array
|
40 |
except ValueError:
|
|
|
30 |
|
31 |
driver = webdriver.Chrome(options=options)
|
32 |
|
|
|
33 |
try:
|
34 |
if header_list == None:
|
35 |
pass
|
36 |
else:
|
37 |
+
# print(unquote(header_list))
|
38 |
header_array = json.loads(unquote(header_list))
|
39 |
driver.header_overrides = header_array
|
40 |
except ValueError:
|