Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhangnew/isso_to_waline
migration isso db to waline json
https://github.com/zhangnew/isso_to_waline
isso migration waline
Last synced: about 1 month ago
JSON representation
migration isso db to waline json
- Host: GitHub
- URL: https://github.com/zhangnew/isso_to_waline
- Owner: zhangnew
- Created: 2022-05-23T06:22:06.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-23T06:22:31.000Z (over 2 years ago)
- Last Synced: 2024-11-07T10:35:28.270Z (3 months ago)
- Topics: isso, migration, waline
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-waline - isso_to_waline
README
# dump_comments_to_waline
把 isso 的数据库导出为 waline 的 json 格式
## Usage
修改脚本开头的变量:
- DB_PATH = ''
- ADMIN_NICK = ""
- ADMIN_EMAIL = ""
- ADMIN_SITE = ""
- UA = ""```shell
python3 dump_comments_to_waline.py > comments.json
```- 初始化 waline 之后访问 ui 页面,导出数据得到 waline.json
- 把 comments.json 文件里面的 List 替换到 waline.json 的 Comment 中
- 把 waline.json 重新导入到 waline 中。## 限制
isso 只支持二级回复,所以导出评论中的二级回复,回复@的都是一级回复的人(也就是层主)
如果需要完善,可以手动修改数据库 wl_Comment 表,修改点有 2 个字段,三处:
- comment 字段:@ 后面的内容
- comment 字段:# 后面的内容
- pid 字段对应的都改成回复的真实对象。