display url image with python

35

display url image with python -

from PIL import Image
import requests
from io import BytesIO

response = requests.get(url)
img = Image.open(BytesIO(response.content))

Comments

Submit
0 Comments