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