pycountry icon indicating copy to clipboard operation
pycountry copied to clipboard

Country Flag emoji

Open lucasrodes opened this issue 4 years ago • 1 comments

Hi, Thought of adding Flag emoji support?

This project could be used. I can work on a PR

lucasrodes avatar Jan 31 '21 03:01 lucasrodes

Seconded this, but does it have subregion flags?

BradKML avatar Oct 28 '21 15:10 BradKML

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.

stfujnkk avatar Dec 03 '22 08:12 stfujnkk

@lucasrodes and @BrandonKMLee, @stfujnkk is correct

>>> import pycountry
>>> united_states = pycountry.countries.get(alpha_2='US')
>>> united_states.flag
'🇺🇸'

nschimmoller avatar Dec 11 '23 17:12 nschimmoller