You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

12 lines
324 B

from PIL import Image
import requests
from io import BytesIO
import os
url = "https://www.k31.ru/uploads/articles/2025-08-15/689f35e92c4cf.jpg"
response = requests.get(url)
print(response.content)
img = Image.open(BytesIO(response.content))
img.save(f"D:\\WORK\\EVP_2.0\\SmartIntegration\\data\\{os.path.basename(url)}")