# Download WebP image
curl https://tcpdata.com/image/webp -o image.webp
fetch('https://tcpdata.com/image/webp')
.then(res => res.blob())
.then(blob => {
const img = document.createElement('img');
img.src = URL.createObjectURL(blob);
document.body.appendChild(img);
});
import requests
response = requests.get('https://tcpdata.com/image/webp')
with open('image.webp', 'wb') as f:
f.write(response.content)