pycountry
pycountry copied to clipboard
Country Flag emoji
Seconded this, but does it have subregion flags?
This problem has been solved and you can find them in the flag attribute. By the way, font support is required to display the flag correctly.
@lucasrodes and @BrandonKMLee, @stfujnkk is correct
>>> import pycountry
>>> united_states = pycountry.countries.get(alpha_2='US')
>>> united_states.flag
'🇺🇸'