Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -61,14 +61,12 @@ def chrome(url:str=None,wait:int=5,header:str=None,cookie:str=None):
|
|
61 |
if type(cookie) == str:
|
62 |
header_array.update({"cookie":unquote(cookie)})
|
63 |
|
64 |
-
|
65 |
-
|
66 |
options = Options()
|
67 |
options.add_argument('--headless')
|
68 |
|
69 |
driver = webdriver.Chrome(options=options)
|
70 |
|
71 |
-
driver.get(
|
72 |
|
73 |
if 'cookie' in header_array:
|
74 |
cookie_array = convert_cookies_to_dict(header_array['cookie'])
|
|
|
61 |
if type(cookie) == str:
|
62 |
header_array.update({"cookie":unquote(cookie)})
|
63 |
|
|
|
|
|
64 |
options = Options()
|
65 |
options.add_argument('--headless')
|
66 |
|
67 |
driver = webdriver.Chrome(options=options)
|
68 |
|
69 |
+
driver.get(target_url)
|
70 |
|
71 |
if 'cookie' in header_array:
|
72 |
cookie_array = convert_cookies_to_dict(header_array['cookie'])
|