|
@ -7,7 +7,7 @@ import urllib.request |
|
|
from io import BytesIO |
|
|
from io import BytesIO |
|
|
|
|
|
|
|
|
def cat(w, h): |
|
|
def cat(w, h): |
|
|
url = f'https://cataas.com/cat/says/DOCHKATZE?size=100&width={w}?height={h}?text=cat' |
|
|
url = f'https://cataas.com/cat/says/henlo?size=100&width={w}?height={h}?text=cat' |
|
|
resp = urllib.request.urlopen(url) |
|
|
resp = urllib.request.urlopen(url) |
|
|
im_data = resp.read() |
|
|
im_data = resp.read() |
|
|
im = Image.open(BytesIO(im_data)) |
|
|
im = Image.open(BytesIO(im_data)) |
|
|