mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
Update Markdown2JSON converter for CORS
This commit is contained in:
@@ -22,7 +22,8 @@ def markdown_to_json(filename, anchor):
|
|||||||
'Description': chunks[1],
|
'Description': chunks[1],
|
||||||
'Auth': None if chunks[2].upper() == 'NO' else chunks[2].strip('`'),
|
'Auth': None if chunks[2].upper() == 'NO' else chunks[2].strip('`'),
|
||||||
'HTTPS': True if chunks[3].upper() == 'YES' else False,
|
'HTTPS': True if chunks[3].upper() == 'YES' else False,
|
||||||
'Link': chunks[4].replace('[Go!]', '')[1:-1],
|
'CORS': chunks[4].strip('`'),
|
||||||
|
'Link': chunks[5].replace('[Go!]', '')[1:-1],
|
||||||
'Category': category,
|
'Category': category,
|
||||||
}
|
}
|
||||||
entries.append(entry)
|
entries.append(entry)
|
||||||
|
|||||||
Reference in New Issue
Block a user