Emoji-translator-Server/testGet.py
kaiyuran 0ab36ce8e1 Revert "not working"
This reverts commit 533fc4a9bc.
2024-11-19 13:21:37 -05:00

14 lines
No EOL
298 B
Python

import requests
url = "http://127.0.0.1:5000/getemoji"
params = {
"message": "I love chocolate donuts. I laugh at funny jokes about it. I think it is amazing."
}
r = requests.get(url, params=params)
data = r.json()
print(list(data.keys()))
finalMessage = data["message"]
print(finalMessage)