13 lines
324 B
Python
13 lines
324 B
Python
|
|
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)}")
|