import json
html_string = '''
Libraries on GitLab
Country |
City |
Organisation |
Repositories |
'''
with open("all-libs-gitlab.json", 'r') 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-gitlab.html', 'w', encoding='utf8') as html_file:
html_file.write(html_string)