Skip to content

Commit

Permalink
feat: 抖音支持评论点赞数量 #495
Browse files Browse the repository at this point in the history
  • Loading branch information
NanmiCoder committed Nov 15, 2024
1 parent c12a63a commit 8ab4c67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions schema/tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -531,3 +531,7 @@ CREATE TABLE `zhihu_creator` (
PRIMARY KEY (`id`),
UNIQUE KEY `idx_zhihu_creator_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='知乎创作者';


-- add column `like_count` to douyin_aweme_comment
alter table douyin_aweme_comment add column `like_count` varchar(255) NOT NULL DEFAULT '0' COMMENT '点赞数';
1 change: 1 addition & 0 deletions store/douyin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ async def update_dy_aweme_comment(aweme_id: str, comment_item: Dict):
"nickname": user_info.get("nickname"),
"avatar": avatar_info.get("url_list", [""])[0],
"sub_comment_count": str(comment_item.get("reply_comment_total", 0)),
"like_count": comment_item.get("digg_count") if comment_item.get("digg_count") else 0,
"last_modify_ts": utils.get_current_timestamp(),
"parent_comment_id": parent_comment_id
}
Expand Down

0 comments on commit 8ab4c67

Please sign in to comment.