Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def chrome(url:str=None,wait:int=5,header:str=None,cookie:str=None):
|
|
66 |
cookie_domain = f'.{get_root_domain(target_url)}'
|
67 |
for key, value in cookie_array.items():
|
68 |
driver.execute_script(f'document.cookie = "{key}={value}; path=/; domain={cookie_domain}; expires=Thu, 01 Jan 2050 00:00:00 GMT;');
|
69 |
-
print(driver.execute_script(f'return document.cookie')
|
70 |
|
71 |
options = Options()
|
72 |
options.add_argument('--headless')
|
|
|
66 |
cookie_domain = f'.{get_root_domain(target_url)}'
|
67 |
for key, value in cookie_array.items():
|
68 |
driver.execute_script(f'document.cookie = "{key}={value}; path=/; domain={cookie_domain}; expires=Thu, 01 Jan 2050 00:00:00 GMT;');
|
69 |
+
print(driver.execute_script(f'return document.cookie'))
|
70 |
|
71 |
options = Options()
|
72 |
options.add_argument('--headless')
|