Browse Source

内容: 修正笔记列表字段顺序(阅读/评论/点赞/收藏/分享)

Sisyphus Agent 1 month ago
parent
commit
a18a851915
1 changed files with 4 additions and 3 deletions
  1. 4 3
      运营文案/小红书发布/_过程脚本/xhs_daily_report.py

+ 4 - 3
运营文案/小红书发布/_过程脚本/xhs_daily_report.py

@@ -197,13 +197,14 @@ def collect_notes(publisher, limit=10):
                 nums.append(int(lines[j]))
                 nums.append(int(lines[j]))
                 j += 1
                 j += 1
             if len(nums) >= 5 and title:
             if len(nums) >= 5 and title:
+                # 页面顺序: 阅读/评论/点赞/收藏/分享
                 notes.append({
                 notes.append({
                     "title": title,
                     "title": title,
                     "publish_date": ln[:10],
                     "publish_date": ln[:10],
                     "read_count": nums[0],
                     "read_count": nums[0],
-                    "like_count": nums[1],
-                    "collect_count": nums[2],
-                    "comment_count": nums[3],
+                    "comment_count": nums[1],
+                    "like_count": nums[2],
+                    "collect_count": nums[3],
                     "share_count": nums[4],
                     "share_count": nums[4],
                     "unreplied_comment_count": 0,
                     "unreplied_comment_count": 0,
                 })
                 })