Obsidianのデイリーページを作成するPythonスクリプト
code:Obsidian_template.py
# Obsidian_template.py
import datetime
import os
dairyfilepath = '.md'
today = datetime.date.today()
yesterday = today - datetime.timedelta(days=1)
tommorow = today + datetime.timedelta(days=1)
notebody = f'''
# {today}
<<{yesterday} |yesterday {tommorow} |tommorow>>
--do--
--memo--
'''
with open(str(today) + dairyfilepath, mode='w') as f:
f.write(notebody)