pycountry: countries.search_fuzzy Example
Syntax
pycountry.countries.search_fuzzy("country_name")
countries.search_fuzzy Example
import pycountry
# Get info country
us = pycountry.countries.search_fuzzy("united states")
print(us)
Output:
[Country(alpha_2='US', alpha_3='USA', name='United States', numeric='840', official_name='United States of America'), Country(alpha_2='UM', alpha_3='UMI', name='United States Minor Outlying Islands', numeric='581'), Country(alpha_2='VI', alpha_3='VIR', name='Virgin Islands, U.S.', numeric='850', official_name='Virgin Islands of the United States')]