Added base daun functionality

This commit is contained in:
BarsTiger
2022-04-08 21:27:26 +03:00
parent da79421bc1
commit 57087f2607
10 changed files with 206 additions and 1 deletions

10
modules/download.py Normal file
View 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)