You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
365 B
15 lines
365 B
import json
|
|
|
|
raw = open("data.json", "r", encoding="utf-8")
|
|
data = json.load(raw)
|
|
|
|
site_file = open('sites.md', 'w')
|
|
site_file.write('## List of supported sites\n')
|
|
|
|
index = 1
|
|
for social_network in data:
|
|
url_main = data.get(social_network).get("urlMain")
|
|
site_file.write(f'{index}. [{social_network}]({url_main})\n')
|
|
index = index + 1
|
|
|
|
site_file.close() |