Container commited on
Commit
daf2932
·
verified ·
1 Parent(s): dee947a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -28,15 +28,15 @@ def main():
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
-
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