A simple web utility to mass convert country names to their equivalent ISO3166 codes
Country data is directly sourced from this wikipedia page.
Just visit this page and input your country names.
poetry install
poetry run python generate-data.py
Data comes from wikipedia and is under the Creative Commons Attribution-ShareAlike 3.0 Unported License.