Container commited on
Commit
f7f18e7
·
verified ·
1 Parent(s): 7fc62d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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')