识别图片链接尺寸大小
# 封面链接
url = "https://ci.xiaohongshu.com/5b8597c2-23ea-36ef-7340-c3ee59da9b3b?imageView2/2/w/1080/format/jpg"
response = u.urlopen(url)
tmpIm = io.BytesIO(response.read())
im = Image.open(tmpIm)
# print(im.format, im.size, im.mode)
items["width"] = im.size[0]
items["height"] = im.size[1]
返回结果
789 1020