@GenderAPI/

Python-3

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.00034585599564329605","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IGpzb24KZnJvbSB1cmxsaWIucmVxdWVzdCBpbXBvcnQgdXJsb3BlbgoKYXBpS2V5ID0gIiIgI1lvdXIgQVBJIEtleQphcGlVcmwgPSAiaHR0cHM6Ly9nZW5kZXJhcGkuaW8vYXBpP25hbWU9Z2VvcmdpJmtleT0iICsgYXBpS2V5CgpyZXNwb25zZSA9IHVybG9wZW4oYXBpVXJsKS5yZWFkKCkuZGVjb2RlKCd1dGYtOCcpCmdldEdlbmRlciA9IGpzb24ubG9hZHMocmVzcG9uc2UpCgpwcmludCggIkdlbmRlcjogIiArIGdldEdlbmRlclsiZ2VuZGVyIl0pOw=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
import json
from urllib.request import urlopen

apiKey = "" #Your API Key
apiUrl = "https://genderapi.io/api?name=georgi&key=" + apiKey

response = urlopen(apiUrl).read().decode('utf-8')
getGender = json.loads(response)

print( "Gender: " + getGender["gender"]);