From ff8ca85082550f5950e5f4e5c0c8cdb3fc2578d0 Mon Sep 17 00:00:00 2001 From: p4ut7fwj5 <3346195219@qq.com> Date: Sun, 15 Sep 2024 18:48:06 +0800 Subject: [PATCH] ADD file via upload --- main.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..97acfcf --- /dev/null +++ b/main.py @@ -0,0 +1,14 @@ +""" + 说明:主程序 +""" +from bullet_screen import get_bullet_screen +from bv_maker import get_bv, BV_NUM +from word_cloud import make_word_cloud + +if __name__ == '__main__': + bv_list = get_bv(BV_NUM) + bullet_screen_list = get_bullet_screen(bv_list) + try: #异常处理,防止没有AI应用相关弹幕造成的ValueError + make_word_cloud(bullet_screen_list) + except ValueError as e: + print("没有任何AI应用相关的弹幕") \ No newline at end of file