import requests from PIL import Image from io import BytesIO url = 'http://image2.buslive.cn/shp/upload/2017/11/29_00545678.jpeg' response = requests.get(url) image = Image.open(BytesIO(response.content)) image.save('9.jpg')
import requests from PIL import Image from io import BytesIO url = 'http://image2.buslive.cn/shp/upload/2017/11/29_00545678.jpeg' response = requests.get(url) image = Image.open(BytesIO(response.content)) image.save('9.jpg')