Files
daun/modules/download.py
2022-04-08 21:27:26 +03:00

11 lines
285 B
Python

# Module for downloading files from the internet
import requests
def download(url: str, file_name: str) -> None:
"""
Downloads a file from the internet and saves it to the specified file
"""
with open(file_name, 'wb') as f:
f.write(requests.get(url).content)