Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def chrome(url:str=None,wait:int=5,header:str=None,cookie:str=None):
|
|
68 |
driver = webdriver.Chrome(options=options)
|
69 |
|
70 |
if 'cookie' in header_array:
|
71 |
-
cookie_array = header_array['cookie']
|
72 |
del header_array['cookie']
|
73 |
cookie_domain = f'.{get_root_domain(target_url)}'
|
74 |
for key, value in cookie_array.items():
|
|
|
68 |
driver = webdriver.Chrome(options=options)
|
69 |
|
70 |
if 'cookie' in header_array:
|
71 |
+
cookie_array = convert_cookies_to_dict(header_array['cookie'])
|
72 |
del header_array['cookie']
|
73 |
cookie_domain = f'.{get_root_domain(target_url)}'
|
74 |
for key, value in cookie_array.items():
|