Download

Utility functions for downloading stuff.

source

download

 download (url, save_dir, filename=None, chunk_size=1024)

Download file from url


source

download_and_extract

 download_and_extract (url, save_dir, chunk_size=1024)
with TemporaryDirectory() as d:
    download_and_extract('https://s3.amazonaws.com/fast-ai-sample/mnist_tiny.tgz', d)

source

download_gdrive

 download_gdrive (url)

Download from gdrive, passing virus scan for big files.


source

download_and_extract_gdrive

 download_and_extract_gdrive (url, extract_dir)

source

open_image_url

 open_image_url (url, gray=False, ignore_exif=True)
img = open_image_url('https://media.istockphoto.com/id/177228186/pt/foto/jovem-capivara.jpg?s=612x612&w=0&k=20&c=HIaHC5JhfE3zobczCLIEY6bdy2NdOLq0sskZkuXsM9w=')
pv.show_image(img)