-
Notifications
You must be signed in to change notification settings - Fork 39
Wiki
Qliangw edited this page Mar 10, 2022
·
2 revisions
- 下载该仓库
git clone https://github.com/Qliangw/notion_sync_data.git - 安装依赖环境
pip install -r requirements.txt - 复制
doc文件下的config.yaml.simple文件重命名为config.yaml
根据config.yaml说明进行填写
- user-agent建议填写
打开豆瓣,按f12 再按f5,根据图片中内容查找
- 豆瓣user_id的获取(cookie暂时没有用)
登录豆瓣,点击个人主页,
douban.com/people/xxxx这个xxxx就是你的user_id
- 打开notion的设置页面
- 按照图片去获取
在该页面点击share -> invite 然后填入刚刚申请的token

自动保存了,不用在填写了
运行初始化后再填写
运行命令 python run.py -h查看帮助文档
-
运行命令
python run.py -f init初始化notion数据库
网页查看数据库 -
打开刚刚创建的数据库,复制数据库id到config.yaml对应位置
运行命令 python run.py -m book -s wish
目前支持媒体【图书、音乐】的所有状态【想看、在看、看过】的导入