repl.it
@GenderAPI/

Python-2

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
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"];