def install_stuff_that_goes_in_gtav_dir(): logger.info('Installing ScriptHookV and XBOX360CE to GTAV directory') files_to_backup = ['dinput8.dll', 'NativeTrainer.asi', 'ScriptHookV.dll', 'x360ce_x64.exe'] files_to_backup = [os.path.join(GTAV_DIR, fname) for fname in files_to_backup] for fname in files_to_backup: if os.path.isfile(fname): shutil.copy2(fname, '%s.%s.deepdrive_backup' % (fname, INSTALL_TIME_STR)) utils.download_folder('https://www.dropbox.com/sh/fy6nha3ikm2ugij/AADm8SPKm5bX3Nl2qx69rCcYa?dl=1', GTAV_DIR)
def do_download(url, itag): """Efetua o download do stream""" # define a url escolhida url = "https://www.youtube.com.br" + url video = pytube.YouTube(url) stream = video.streams.get_by_itag(itag) print(f"Downloading... {stream.title}") stream.download(output_path=download_folder()) output_file = os.path.join(download_folder(), stream.default_filename) print(f"\nSaved file in {output_file} ({stream.filesize} B)\n") input("Tecle ENTER")
def install_obs(install_dir): logger.info('Installing DeepDrive OBS') utils.download_folder('https://www.dropbox.com/s/v4p75gxyqy6t9pi/OBS-new.zip?dl=1', install_dir)
def install_caffe(install_dir): logger.info('Installing DeepDrive Caffe and Neural Net') utils.download_folder('https://www.dropbox.com/s/zt77lslfrmw28m4/caffe.zip?dl=1', install_dir)
def install_autoit(install_dir): logger.info('Installing DeepDrive AutoIT') utils.download_folder('https://www.dropbox.com/s/09mtrrr42putjty/AutoIt3.zip?dl=1', install_dir)