Skip to content

Instantly share code, notes, and snippets.

View math280h's full-sized avatar
:shipit:
I code.... I think...

Mathias V. Nielsen math280h

:shipit:
I code.... I think...
View GitHub Profile
@math280h
math280h / create_country_code_csv.py
Last active August 16, 2020 00:45
Create Country Phone Code CSV
import requests
import json
import csv
# Gather Codes & Names
print("Gathering Data")
country_codes = requests.get("http://country.io/phone.json")
country_names = requests.get("http://country.io/names.json")
country_iso = requests.get("http://country.io/iso3.json")