• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

echo724/notion2md: Notion Markdown Exporter with Python Cli

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

echo724/notion2md

开源软件地址(OpenSource Url):

https://github.com/echo724/notion2md

开源编程语言(OpenSource Language):

Python 100.0%

开源软件介绍(OpenSource Introduction):

Notion2Md logo - an arrow pointing from "N" to "MD"


About Notion2Md

PyPI version Code Quality

  • Notion Markdown Exporter using official notion api by notion-sdk-py

Notion2Medium

  • Check out Notion2Medium that publishes a Medium post from Notion using Notion2Md.

API Key(Token)

$ export NOTION_TOKEN="{your integration token key}"

Install

$ pip install notion2md

Usage: Shell Command

Terminal output of the notion2md -h command

  • Notion2md requires either id or url of the Notion page/block.

  • download option will download files/images in the path directory.

  • unzipped option makes Notion2Md export unzipped output of Notion block.

notion2md --download -n post -p ~/MyBlog/content/posts -u https://notion.so/...
  • This command will generate "post.zip" in your '~/MyBlog/content/posts' directory.

Usage: Python

from notion2md.exporter.block import MarkdownExporter, StringExporter

# MarkdownExporter will make markdown file on your output path
MarkdownExporter(page_id='...',output_path='...',download=True).export()

# StringExporter will return output as String type
md = StringExporter(page_id='...',output_path='...').export()

To-do

  • Download file object(image and files)
  • Table blocks
  • Synced Block
  • Page Exporter
  • Child page
  • Column List and Column Blocks

Contribution

Please read Contribution Guide

Donation

If you think Notion2Md is helpful to you, you can support me here:

Buy Me A Coffee

License

MIT




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
sk1418/ghtoc: generate toc for markdown file发布时间:2022-08-18
下一篇:
jeziellago/compose-markdown: Markdown Text for Android Jetpack Compose 发布时间:2022-08-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap