acecalisto3 commited on
Commit
6159982
·
verified ·
1 Parent(s): 3ef3eeb

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +6 -0
app2.py CHANGED
@@ -4,11 +4,14 @@ import re
4
  import time
5
  import logging
6
  import mimetypes
 
 
7
  import concurrent.futures
8
  import string
9
  import zipfile
10
  import tempfile
11
  from datetime import datetime
 
12
  from typing import List, Dict, Optional, Union
13
  from pathlib import Path
14
  from urllib.parse import urlparse
@@ -25,6 +28,9 @@ import nest_asyncio
25
  nest_asyncio.apply()
26
  import aiohttp
27
 
 
 
 
28
  # Setup logging
29
  logging.basicConfig(
30
  level=logging.INFO,
 
4
  import time
5
  import logging
6
  import mimetypes
7
+ from selenium import webdriver
8
+ from chromedriver_py import binary_path # this will get you the path variable
9
  import concurrent.futures
10
  import string
11
  import zipfile
12
  import tempfile
13
  from datetime import datetime
14
+ import chromedriver
15
  from typing import List, Dict, Optional, Union
16
  from pathlib import Path
17
  from urllib.parse import urlparse
 
28
  nest_asyncio.apply()
29
  import aiohttp
30
 
31
+ svc = webdriver.ChromeService(executable_path=binary_path)
32
+ driver = webdriver.Chrome(service=svc)
33
+
34
  # Setup logging
35
  logging.basicConfig(
36
  level=logging.INFO,