2025-12-2genxin

This commit is contained in:
2025-12-02 14:58:52 +08:00
parent 4fef65bd93
commit be0954828c
36 changed files with 3352 additions and 1638 deletions

View File

@@ -25,7 +25,6 @@ type ArticleDetail struct {
ReadCount string `json:"read_count"`
LikeCount string `json:"like_count"`
ShareCount string `json:"share_count"`
ShowRead string `json:"show_read"`
Comments []string `json:"comments"`
CommentLikes []string `json:"comment_likes"`
CommentID string `json:"comment_id"`
@@ -1624,7 +1623,6 @@ func (w *WechatCrawler) GetArticleDetail(link string) (*ArticleDetail, error) {
ReadCount: stats["read_num"],
LikeCount: stats["old_like_num"],
ShareCount: stats["share_num"],
ShowRead: stats["show_read"],
Comments: comments,
CommentLikes: commentLikes,
CommentID: commentID,
@@ -1731,7 +1729,6 @@ func (c *WechatCrawler) SaveArticleDetailToExcel(article *ArticleDetail, filePat
content.WriteString(fmt.Sprintf("阅读量: %s\n", article.ReadCount))
content.WriteString(fmt.Sprintf("点赞数: %s\n", article.LikeCount))
content.WriteString(fmt.Sprintf("转发数: %s\n", article.ShareCount))
content.WriteString(fmt.Sprintf("在看数: %s\n", article.ShowRead))
content.WriteString(strings.Repeat("=", 80))
content.WriteString("\n\n")