(url, path)
Downloads resources from s3 by url and unzips them to the provided path
Downloads resources from s3 by url and unzips them to the provided path
Downloads resources from s3 by url and unzips them to the provided path
def DownloadResource(url, path):
    '''Downloads resources from s3 by url and unzips them to the provided path'''
    import requests, zipfile, StringIO
    print("Downloading... {} to {}".format(url, path))
    r = requests.get(url, stream=True)
    z = zipfile.ZipFile(StringIO.StringIO(r.content))
    z.extractall(path)
    print("Completed download and extraction.")
def DownloadResource ( url , path ) : import requests , zipfile , StringIO print ( "Downloading... {} to {}" . format ( url , path ) ) r = requests . get ( url , stream = True ) z = zipfile . ZipFile ( StringIO . StringIO ( r . content ) ) z . extractall ( path ) print ( "Completed download and extraction." )