Get Notion Data
This will help you to get PUBLIC Notion page's data.
Installation
$ npm i -S get-notion-data
Usage
const getNotionData = require('get-notion-data');
getNotionData().then((data) => {
console.log(JSON.stringify(data, null, 2));
});
First of all, you should make page public. Then you can get the ID of the page.
If the public Notion page's URL is https://www.notion.so/Personal-Home-db45cd2e7c694c3493c97f2376ab184a
You need to copy `db45cd2e7c694c3493c97f2376ab184a`. and make it to follow below format.
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
X{8}-X{4}-X{4}-X{4}-X{12}
Before run the source, you should set up the timezone like this. Default timezone is Asiz/Seoul.
$ TZ=Asia/Seoul