begin the headers functions

This commit is contained in:
Andreas Zweili 2020-10-12 15:17:54 +02:00
parent 1a2b036fa5
commit b1450ed2b7
1 changed files with 19 additions and 0 deletions

19
url2markdown/header.py Normal file
View File

@ -0,0 +1,19 @@
def _get_topics_from_cli():
pass
def _build_header_dict(article):
header = {}
header['topics'] = _get_topics_from_cli()
if article.authors:
header['authors'] = article.authors
if article.keywords:
header['topics'].append(article.keywords)
if not header['topics']:
header['topics'] = ['to_categorise']
return header
def build_header(header):
yaml = ""
return yaml