-
Notifications
You must be signed in to change notification settings - Fork 193
/
Copy pathbiclass.py
157 lines (148 loc) · 3.51 KB
/
biclass.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# -*- coding: utf-8 -*-
"""
Created on Wed May 28 01:22:20 2014
@author: Vespa
"""
class User():
def __init__(self,m_mid=None,m_name=None):
if m_mid:
self.mid = m_mid
if m_name:
if isinstance(m_name,unicode):
m_name = m_name.encode('utf8')
self.name = m_name
# 获取空间地址
def GetSpace(self):
return 'http://space.bilibili.tv/'+str(self.mid)
mid = None
name = None
isApprove = None#是否是认证账号
spaceName = None
sex = None
rank = None
avatar = None
follow = None#关注好友数目
fans = None#粉丝数目
article = None#投稿数
place = None#所在地
description = None#认证用户为认证信息 普通用户为交友宣言
followlist = None#关注的好友列表
friend = None
DisplayRank = None
class Video():
def __init__(self,m_aid=None,m_title=None):
if m_aid:
self.aid = m_aid
if m_title:
if isinstance(m_title,unicode):
m_title = m_title.encode('utf8')
self.title = m_title
aid = None
title = None
guankan = None
shoucang = None
danmu = None
date = None
cover = None
commentNumber = None
description = None
tag = None
author = None
page = None
credit = None
coin = None
spid = None
cid = None
offsite = None#Flash播放调用地址
Iscopy = None
subtitle = None
duration = None
episode = None
arcurl = None#网页地址
arcrank = None#不明
tid = None
typename = None
#不明:
instant_server = None
src = None
partname = None
allow_bp = None
allow_feed = None
created = None
#播放信息:
play_site = None
play_forward = None
play_mobile = None
class Bangumi():
def __init__(self):
pass
typeid = None
lastupdate = None
areaid = None
bgmcount = None#番剧当前总集数
title = None
lastupdate_at = None
attention = None #订阅数
cover = None
priority = None
area = None
weekday = None
spid = None
new = None
scover = None
mcover = None
click = None
season_id = None
click = None # 浏览数
video_view = None
class Comment():
def __init__(self):
self.post_user = User()
lv = None#楼层
fbid = None#评论id
msg = None
ad_check = None#状态 (0: 正常 1: UP主隐藏 2: 管理员删除 3: 因举报删除)
post_user = None
class CommentList():
def __init__(self):
pass
comments = None
commentLen = None
page = None
class ZhuantiInfo():
def __init__(self, m_spid,m_title):
self.spid = m_spid
if isinstance(m_title,unicode):
m_title = m_title.encode('utf8')
self.title = m_title
spid = None
title = None
author = None
cover = None
thumb = None
ischeck = None #不明
typeurl = None #总是"http://www.bilibili.com"
tag = None
description = None
pubdate = None # 不明
postdate = None
lastupdate = None
click = None
favourite = None
attention = None
count = None
bgmcount = None
spcount = None
season_id = None
is_bangumi = None
arcurl = None
class Danmu():
def __init__(self):
pass
t_video = None
t_stamp = None
mid_crc = None # 值为:hex(binascii.crc32(mid))
danmu_type = None # 1:滚动弹幕 5:顶端弹幕 4:底部弹幕
content = None
danmu_color = None
danmu_fontsize = None