1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
| # 社交媒体算法分析
class SocialMediaAlgorithm:
"""社交媒体算法分析"""
def __init__(self):
self.algorithms = {
'douyin': {
'name': '抖音算法',
'type': '推荐算法',
'key_factors': {
'completion_rate': {
'weight': 'High',
'description': '完播率',
'target': '> 50%'
},
'engagement_rate': {
'weight': 'High',
'description': '互动率(点赞评论)',
'target': '> 10%'
},
'watch_time': {
'weight': 'Medium',
'description': '观看时长',
'target': '> 15秒'
},
'replay_rate': {
'weight': 'Medium',
'description': '复播率',
'target': '> 20%'
}
},
'optimization_tips': [
'前3秒必须抓住注意力',
'视频时长15-30秒最佳',
'使用热门音乐',
'引导互动(评论、分享)',
'保持更新频率(日更)',
'参与热门挑战'
]
},
'xiaohongshu': {
'name': '小红书算法',
'type': '推荐+社交关系',
'key_factors': {
'interaction': {
'weight': 'High',
'description': '互动数据',
'metrics': ['点赞', '收藏', '评论', '转发']
},
'content_quality': {
'weight': 'High',
'description': '内容质量',
'factors': ['原创性', '实用性', '美观度']
},
'user_match': {
'weight': 'Medium',
'description': '用户匹配度',
'based_on': ['兴趣', '历史行为', '关注关系']
},
'timeliness': {
'weight': 'Low',
'description': '时效性',
'impact': 'new content boost'
}
},
'optimization_tips': [
'高质量封面图',
'吸引人的标题',
'详细的内容描述',
'相关话题标签',
'与粉丝互动',
'保持更新频率'
]
},
'bilibili': {
'name': 'B站算法',
'type': '综合推荐',
'key_factors': {
'video_completion': {
'weight': 'High',
'description': '视频完播率'
},
'interaction': {
'weight': 'High',
'description': '互动(三连)',
'actions': ['点赞', '投币', '收藏']
},
'subscriber_growth': {
'weight': 'Medium',
'description': '粉丝增长'
},
'watch_time': {
'weight': 'Medium',
'description': '观看时长'
}
},
'optimization_tips': [
'视频封面吸引人',
'标题简洁有力',
'前30秒抓住观众',
'系列化内容',
'与弹幕互动',
'定期更新'
]
}
}
def get_content_strategy(self, platform, content_type):
"""根据平台获取内容策略"""
strategies = {
'douyin': {
'short_video': {
'duration': '15-60秒',
'structure': 'Hook(3s) → Content → CTA',
'style': '快节奏、高能量',
'music': '使用热门BGM',
'text': '简洁文字叠加',
'hashtags': '3-5个相关话题'
},
'live_stream': {
'duration': '2-4小时',
'content': '产品演示、互动、优惠',
'frequency': '固定时间开播',
'promotion': '短视频预告'
}
},
'xiaohongshu': {
'image_note': {
'images': '4-7张高质量图片',
'title': '疑问句+emoji+关键词',
'content': '真实体验+详细描述',
'tags': '#话题 + @品牌',
'engagement': '引导收藏和评论'
},
'video_note': {
'duration': '1-3分钟',
'style': '教程或vlog',
'caption': '详细文字说明',
'cover': '精美封面'
}
}
}
return strategies.get(platform, {}).get(content_type, {})
|