from requests import get
from re import findall
import shutil
def downl(url):
res = get(url, stream = True)
nameFile = ''.join([str(i) for i in findall('https://.+/(.+)', url)])
with get(url, stream=True) as response:
if response.status_code == 200:
with open(nameFile, mode = 'wb') as local_file:
shutil.copyfileobj(response.raw, local_file)