@GenderAPI/

Python-3

Python

No description

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