You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
682 B
14 lines
682 B
2 months ago
|
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) # 对爬取到的所有弹幕进行情感分析
|
||
|
|