import json
html_string = '''
Libraries on GitHub
Country |
City |
Organisation |
Repositories |
'''
with open("all-libs.json", 'r', encoding="utf-8") as json_file:
data = json.load(json_file)
for org in data["organisations"]:
html_string += "" + org['country'] + " | " + org['city'] + " | " + org['name'] + " | " + str(len(org['repositories'])) + " |
\n"
html_string += '''
'''
with open('libraries.html', 'w', encoding='utf8') as html_file:
html_file.write(html_string)