1
mirror of https://github.com/public-apis/public-apis synced 2025-02-17 16:21:24 +01:00

Update Markdown2JSON converter for CORS

This commit is contained in:
Dave Machado 2018-01-14 13:45:19 -05:00
parent b2b5c2682e
commit aa74230ba4
No known key found for this signature in database
GPG Key ID: 948D4778D01A7B3F

View File

@ -22,7 +22,8 @@ def markdown_to_json(filename, anchor):
'Description': chunks[1],
'Auth': None if chunks[2].upper() == 'NO' else chunks[2].strip('`'),
'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,
}
entries.append(entry)