File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
seleniumbase/console_scripts Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 19
19
import shutil
20
20
import sys
21
21
import tarfile
22
- import urllib3
23
22
import zipfile
24
23
from seleniumbase import drivers # webdriver storage folder for SeleniumBase
25
- urllib3 .disable_warnings ()
24
+ requests . packages . urllib3 .disable_warnings ()
26
25
DRIVER_DIR = os .path .dirname (os .path .realpath (drivers .__file__ ))
27
26
28
27
@@ -188,7 +187,7 @@ def main():
188
187
if not os .path .exists (downloads_folder ):
189
188
os .mkdir (downloads_folder )
190
189
local_file = open (file_path , 'wb' )
191
- http = urllib3 .PoolManager ()
190
+ http = requests . packages . urllib3 .PoolManager ()
192
191
remote_file = http .request ('GET' , download_url , preload_content = False )
193
192
print ('\n Downloading %s from:\n %s ...' % (file_name , download_url ))
194
193
local_file .write (remote_file .read ())
You can’t perform that action at this time.
0 commit comments