Nomark is the Notion to markdown exporter with image hosting use google drive. Use the notion as a WYSIWYG editor for a static blog with no matter about uploading images.
This readme is also written in notion and exported by using the Nomark. https://abit.ly/nomark-example ← check this
- Install nomark
pip install nomark
- Download the google drive api token
https://developers.google.com/drive/api/v3/quickstart/python
Visit link to enable google drive api. Click the "Enable the Drive API" and download the credential.json
in to ~/.cred/credential.json
- Get your notion api token
You need to obtain your token for using notion api.
Go to http://notion.so and open chrome developer tools. Open "Application" tab → "Storage" → "Cookies" and copy the token_v2
Value.
And export the notion token to variable export NOTION_TOKEN=token_v2_value
. Paste it in to ~/.bashrc
- Get notion article url
Set your article shareable and copy the link.
- Run nomark
$ nomark http://www.notion.so/your_article_url
python 3.7+