|
|
|
@ -98,7 +98,7 @@ def Getdanmu():# 遍历所有视频的 cid,获取对应弹幕
|
|
|
|
|
|
|
|
|
|
def Sortdanmu():#在得到的弹幕里筛选与ai相关的弹幕
|
|
|
|
|
|
|
|
|
|
ai_pattern = re.compile(r'(?<![a-zA-Z])ai(?![a-zA-Z])|人工智能|世界', re.IGNORECASE)
|
|
|
|
|
ai_pattern = re.compile(r'(?<![a-zA-Z])ai(?![a-zA-Z])|人工智能', re.IGNORECASE)
|
|
|
|
|
|
|
|
|
|
#ai_pattern3 = re.compile(r'ai[a-zA-Z]',re.IGNORECASE)
|
|
|
|
|
#ai_pattern4 = re.compile(r'(?<![a-zA-Z])ai(?![a-zA-Z])', re.IGNORECASE)
|
|
|
|
|