@GenderAPI/

Python-2

Python 2.7

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.41842551396408156","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IGpzb24KaW1wb3J0IHVybGxpYjIKCmFwaUtleSA9ICIiICNZb3VyIEFQSSBLZXkKYXBpVXJsID0gImh0dHBzOi8vZ2VuZGVyYXBpLmlvL2FwaT9uYW1lPWlyaW5hJmtleT0iICsgYXBpS2V5CmdldEdlbmRlciA9IGpzb24ubG9hZCh1cmxsaWIyLnVybG9wZW4oYXBpVXJsKSkKCnByaW50ICJHZW5kZXI6ICIgKyBnZXRHZW5kZXJbImdlbmRlciJdOw=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
import json
import urllib2

apiKey = "" #Your API Key
apiUrl = "https://genderapi.io/api?name=irina&key=" + apiKey
getGender = json.load(urllib2.urlopen(apiUrl))

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