抖音直播间(web版)弹幕抓取

This commit is contained in:
耿伦伦
2021-11-28 00:05:59 +08:00
commit 4ea37b0a65
21 changed files with 7215 additions and 0 deletions

11
messages/social.py Normal file
View File

@ -0,0 +1,11 @@
import time
from protobuf import message_pb2
from messages.base import Base
class SocialMessage(Base):
def __init__(self):
self.instance = message_pb2.SocialMessage()
def __str__(self):
return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【关注】' + self.user().nickname + ' 关注了主播'