como descargar una base de datos
import requests import os import zipfile def download_and_extract_zip_file(url, path, subdirname): """Download a ZIP file and extract its contents in memory Arguments: url {str} -- The URL of the ZIP file path {str} -- The path of the destination folder Returns: str -- The path of the extracted files """ # Create destination folder if does not exist if not os.path.exists(path): os.makedirs(path) # Download the file from the URL print("Downloading %s" % url) response = requests.get(url) # Save it in the destination folder file_path = os.path.join(path, url.split('/')[-1]) with open(file_path, 'wb') as f: f.write(response.content) # Extract the ZIP file print("Extracting %s" % file_path) zip_ref = zipfile.