This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 将twikoo评论转为typecho评论 | |
# 步骤: | |
# 1. 将user提取出来,并分别给每个user生成一个id, 保存到user.json中 | |
# 2. 将comment中的user_id替换为user.json中的id | |
# 3. 将commnets原本ID是UUID,替换为自增ID | |
# 4. 将comments中的parent_id替换为自增ID | |
# 5. 将comments中的各类字段重命名为typecho的字段名 | |
# 6. 将comments中的url字段替换为typecho的字段名, 这里是根据slug字段自动匹配的,如果没有该字段,需要自行适配,或者手动添加url与cid的映射关系 | |
# 7. 保存到typecho_comments.json中 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
# @Author: Dorad, ddxi@qq.com | |
# @Date: 2023-04-22 00:04:43 +02:00 | |
# @LastEditors: Dorad, ddxi@qq.com | |
# @LastEditTime: 2023-04-22 00:18:13 +02:00 | |
# @FilePath: \compress.sh | |
# @Description: | |
# | |
# Copyright (c) 2023 by Dorad (ddxi@qq.com), All Rights Reserved. |