Emoji-translator-Server/testGet.py

14 lines
342 B
Python
Raw Normal View History

2024-11-13 02:38:38 +00:00
import requests
2024-11-20 19:13:42 +00:00
url = "http://127.0.0.1:33303/getemoji"
# url = "http://37.27.51.34:33303/getemoji"
2024-11-13 02:38:38 +00:00
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)