Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -28,15 +28,15 @@ def main():
|
|
28 |
|
29 |
options = Options()
|
30 |
options.add_argument('--headless')
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
|
37 |
driver = webdriver.Chrome(options=options)
|
38 |
-
|
39 |
-
driver.add_cookie(cookies)
|
40 |
|
41 |
driver.get(target_url)
|
42 |
|
|
|
28 |
|
29 |
options = Options()
|
30 |
options.add_argument('--headless')
|
31 |
+
options.add_argument('--disable-gpu')
|
32 |
+
options.add_argument("no-sandbox")
|
33 |
+
options.add_argument("--disable-extensions")
|
34 |
+
for key, value in header_array.items():
|
35 |
+
options.add_argument(f'{key}="{value}"')
|
36 |
|
37 |
driver = webdriver.Chrome(options=options)
|
38 |
+
print(cookies)
|
39 |
+
# driver.add_cookie(cookies)
|
40 |
|
41 |
driver.get(target_url)
|
42 |
|