Container commited on
Commit
c05e38a
·
verified ·
1 Parent(s): a5eba0d

Update app.py

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