import requests import zipfile def download_file(url, save_path): response = requests.get(url) with open(save_path, 'wb') as f: f.write(response.content) def unzip_file(zip_path, extract_to): with zipfile.ZipFile(zip_path, 'r') as zip_ref: zip_ref.extractall(extract_to)