Browse Source

fix ZiskaniDat

master
Jakub Škrabánek 1 year ago
parent
commit
98d87f58c3
  1. BIN
      ziskaniDat/image.gif
  2. 2
      ziskaniDat/yesno.py
  3. 2
      ziskaniDat/yesno2.py

BIN
ziskaniDat/image.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 MiB

After

Width:  |  Height:  |  Size: 516 KiB

2
ziskaniDat/yesno.py

@ -5,7 +5,7 @@ response = requests.get("https://yesno.wtf/api")
if response.status_code == 200:
data = response.json()
#print(data)
print(data["answer"])
image_url = data["image"]
image_response = requests.get(image_url)
with open("image.gif","wb") as f:

2
ziskaniDat/yesno2.py

@ -7,7 +7,7 @@ response = requests.get("https://yesno.wtf/api")
if response.status_code == 200:
data = response.json()
#print(data)
print(data["answer"])
image_url = data["image"]
image_response = requests.get(image_url)
with open("image.gif","wb") as f:

Loading…
Cancel
Save