character-360 / util.py
aki-0421
F: add
a3a3ae4 unverified
raw
history blame
301 Bytes
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)