Convert hexo to notionnext
Project description
Hexo to NotionNext
中文 English
一个简单的 hexo 导入到 NotionNext database 的库
nobelium 的 databse 相比 NotionNext 少了 category 的列, nobelium 也是可以使用的.
使用
在使用此库之前,您需要完成以下准备工作:
-
NotionNext Database 准备工作参看 https://tangly1024.com/article/vercel-deploy-notion-next
-
Hexo 博客的 _post 目录
-
安装
pip install hexo2notionnext
- 在安装完库之后,创建配置文件 config.yaml 的配置
token_v2: <your_token>
database_url: <your_notion_database_url>
hexo_post_path: <your_hexo_post_path>
sulg_format: ':year-:day-:month-:name'
token_v2
notion.so cookie 中 token_v2 的值
database_url
notionNext 页面的地址,如果没有 Duplicate 到自己的 notion 中.
hexo_post_path
本地 Hexo 目录 的 source/_posts
目录
sulg_format
路径的格式参考 https://hexo.io/zh-cn/docs/permalinks ,不支持 :id,
- 配置完成后,使用以下命令将Hexo文章导入到NotionNext 的 database 中:
hexo2notionnext -c config.yaml
问题
- For those getting 'HTTPError( requests.exceptions.HTTPError: Invalid input.)' 出现这个问题
- 在终端上运行
pip show notion
- 获取 notion 包位置并访问其内容(例如
/usr/local/lib/python3.9/site-packages/notion
)。 - 将
store.py
第 280 行更改为limit: 100
https://github.com/paperboi/kindle2notion/issues/14
感谢
https://github.com/Cobertos/md2notion
https://github.com/jamalex/notion-py
许可证
The MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hexo2notionnext-0.0.6.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for hexo2notionnext-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91bce01c965b4e69281783b61d38c323267195757041ba27257a6be9b42dc746 |
|
MD5 | a62dbf1beadbff8f05f8bf8ae989ca7e |
|
BLAKE2b-256 | 0d7f1fa52579d20dde16d695db3594a90094eb9236bd42ed03fa6e6ef176d277 |