This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import shutil | |
#Setting URL and image name | |
image_url = "##########URL TO DOWNLOAD"##########" | |
filename = image_url.split("/")[-1] | |
# Open the url image, set stream to True, this will return the stream content. | |
r = requests.get(image_url, stream = True) |