parent
8d95536c54
commit
c4c89ad0d5
@ -0,0 +1,13 @@
|
||||
from bullet_comments_crawler import fetch_comments
|
||||
from bullet_comment_analysis import comments_analysis
|
||||
from word_cloud import generate
|
||||
#from emotion_analysis import emotion_aly
|
||||
SEARCH_WORD = "2024巴黎奥运会"
|
||||
NUM = 300
|
||||
if __name__ == '__main__':
|
||||
fetch_comments(SEARCH_WORD, NUM) # 爬取弹幕
|
||||
keywords = ['AI', '人工智能', '智能', 'GPT', '计算', '数据分析', '识别', 'gtp', '合成', '监测']
|
||||
comments_analysis(SEARCH_WORD, keywords) # 分析爬取到的弹幕数据
|
||||
generate(f'{SEARCH_WORD}统计弹幕.txt') # 根据弹幕统计结果生成词云图
|
||||
# emotion_aly(SEARCH_WORD) # 对爬取到的所有弹幕进行情感分析
|
||||
|
Loading…
Reference in new issue