Added base daun functionality
This commit is contained in:
10
modules/download.py
Normal file
10
modules/download.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# 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)
|
||||
Reference in New Issue
Block a user