|
@@ -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,
|
|
|
})
|
|
})
|