# -*- coding: utf-8- * -from io import BytesIO
from PIL import Image
import requests
 
 
def get_remote_pic_size(url):
    response = requests.get(path)
    image = Image.open(BytesIO(response.content), 'r')
    return image.size
 
 
print(get_remote_pic_size('https://goss.veer.com/creative/vcg/veer/800water/veer-307487922.jpg') # Width, heightCopy the code