Convert hexo to notionnext
Project description
Hexo to NotionNext
中文 English
一个简单的 hexo 导入到 NotionNext 或 nobelium database 的库
使用
在使用此库之前,您需要完成以下准备工作:
-
Notion Database
notionnext: https://tangly1024.com/article/vercel-deploy-notion-next
nobelium: https://github.com/craigary/nobelium
-
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'
type: notionnext # or nobelium
-
token_v2 notion.so cookie 中 token_v2 的值
-
database_url 如果没有, duplicate 下面的到你的 notion notionNext Duplicate 这个 notionNext Notion template
nobelium Duplicate 这个 nobeliumNotion template
-
hexo_post_path 本地 Hexo 目录 的
source/_posts
目录 -
sulg_format 路径的格式参考 https://hexo.io/zh-cn/docs/permalinks ,不支持 :id,
-
type notionnext or nobelium
- 配置完成后,使用以下命令将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
Built Distribution
File details
Details for the file hexo2notionnext-0.0.9.tar.gz
.
File metadata
- Download URL: hexo2notionnext-0.0.9.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db0db225de92ff76c2b5f38384898e6647cb8dc822f9b20543d658bf5bf40ba8 |
|
MD5 | 8c01c4c398705049e62180d404dd887f |
|
BLAKE2b-256 | 2b4ef2f244d8bdc0ce8451eca4b14eb6cea7c8dc4269653f6350bb6f0de94fe0 |
File details
Details for the file hexo2notionnext-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: hexo2notionnext-0.0.9-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68091a311cb711164ebcd75308b052aa2e68c7405ebcec04e45c3428fa06cd63 |
|
MD5 | 602f43204588e3080399f3e840152fbc |
|
BLAKE2b-256 | 4ef92834ec23536d74ebe2fbf06d85e52e52521b913eabf3a010421bd86cb8e5 |