type
status
password
date
slug
summary
category
URL
tags
icon
全局网络代理
安装md2notion、上传markdown文件都需要使用代理
安装md2notion并使用
python -m md2notion [token_v2] [page-url] [...markdown_path_glob_or_url]- token_v2是你登录进网页版的notion,浏览器对
www.notion.so.com这个站点的cookies。F12控制台就可以看到,复制过来就好。

如果按F12无效果,那么可以打开下面的链接cookies查看、编辑和删除 Cookie - Microsoft Edge Development | Microsoft Learn
page-url是需要添加进的notion页面地址
markdown_path_glob_or_url就是你的md文件
There are also some configuration options:
--clear-previous: If a child of the note atpage-urlhas the same name as what you're uploading, it will first be removed.
--append: Instead of making a new child, it will append the markdown contents to the note atpage-url
--html-img: Upload images that are memtioned in the HTML<img>tags.
配置md2notion
- 安装好的一般使用会报错,所以需要将
/usr/local/lib/python3.6/dist-packages/notion/store.py中的limit修改l为100;
- typora中的图片有的使用
<img>tags,需要将code /usr/local/lib/python3.6/dist-packages/md2notion/upload.py中的--html-img修改为True。
- typora中使用
latex时,需要将code /usr/local/lib/python3.6/dist-packages/md2notion/upload.py中的--latex修改为True。