-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
36 lines (32 loc) · 1003 Bytes
/
main.py
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
# import bilibili_api
from bilibili_api import live, sync, user
import asyncio
import liveget as lg
import multiprocessing as mp
import subprocess_init as smp
def main():
x = lg.LiveInfoGet(rid=34162, reply_flag=False, timestamp_flag=False)
x.living_on(danmaku_flag=True, gift_flag=True, guard_buy_flag=True,
gift_combo_flag=False, enter_flag=False, sys_notice_flag=False,
sc_jpn_flag=True, sc_flag=True)
# # initial zone
# process_list = []
# shared_danmaku_dict = mp.Manager.dict()
# shared_danmaku_dict.update({'Name': 'Says'})
#
# sp_danmaku = smp.SubGetDanmaku('danmaku', room_id=34162)
# sp_danmaku.start()
# process_list.append(sp_danmaku)
#
# for i in range(5):
# p = smp.SubProcess(f"subprocess:{i}")
# p.start()
# process_list.append(p)
#
# for i in process_list:
# p.join()
#
# print(process_list)
# print("test end")
if __name__ == '__main__':
main()