Name Generator

Uinames is a great API to generate names. You can make useful filters such as gender and country as well.

Here is a simply code that uses requests, json and webbrowser libraries harmoniously.

import webbrowser
import requests
import json

params = {"amount": 500, "region": "united states", "gender": "female"}
f = r'https://uinames.com/api/?'
data = requests.get(f, params = params)

a = data.text
a = json.loads(a)

print(a)

If you need a refresher on user defined functions lesson in Python here is a link to our Defining Functions Lesson.

Source of API: Uinames.com/api

Recommended Posts