0.1.7 • Published 2 years ago

notion-export-cli v0.1.7

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

notion-export

fastest way to export notion pages.

使用

有两种使用方法,一种是通过命令行调用,一种是在代码中通过函数调用。

命令行:

notion-export-cli --email example@mail.com --password your_password --blockId page1_id --blockId page2_id

函数:

const notionExportFn = require('notion-export-cli');

notionExportFn({
    email: 'example@mail.com',
    password: 'your_password',
    blockId: [
      // ...
    ],
})
.then(res => {
    // ['page_content_download_url']
    console.log(res);
});

参数

参数名种类描述默认值
emailstringnotion 登录邮箱-
passwordstringnotion 登录密码-
blockIdstring|array导出的 notion 页面的 id-
exportTypestring导出 notion 页面的类型'markdown'

常见问题

怎么查看要导出的页面的 id?

首先打开页面,然后点击右上角的 share 按钮,会弹出如下弹窗: image 之后点击 copy link,就会得到页面链接,格式为:

https://www.notion.so/页面标题-blockId

通过查看链接即可得到 blockId。

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago