Answers for "how to get the url of an image using requests js"

2

requests get image from url

import requests
import io
from PIL import Image

response = requests.get("https://i.imgur.com/ExdKOOz.png")
image_bytes = io.BytesIO(response.content)

img = Image.open(image_bytes)
print(f'Size: {img.size}')
img.show()
Posted by: Guest on July-18-2021

Code answers related to "how to get the url of an image using requests js"

Python Answers by Framework

Browse Popular Code Answers by Language