py_bilibili2.py 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. #coding=utf-8
  2. #!/usr/bin/python
  3. import sys
  4. sys.path.append('..')
  5. from base.spider import Spider
  6. import json
  7. import time
  8. import base64
  9. class Spider(Spider): # 元类 默认的元类 type
  10. def getName(self):
  11. return "哔哩哔哩"
  12. def init(self,extend=""):
  13. #初始化,获取收藏夹分区,获取userid
  14. self.userid = self.get_userid()
  15. url = 'http://api.bilibili.com/x/v3/fav/folder/created/list-all?up_mid=%s&jsonp=jsonp' % (self.userid)
  16. rsp = self.fetch(url, cookies=self.getCookie())
  17. content = rsp.text
  18. jo = json.loads(content)
  19. fav_list=[]
  20. if jo['code'] == 0:
  21. for fav in jo['data'].get('list'):
  22. fav_dict = {'n':fav['title'] ,'v':fav['id']}
  23. fav_list.append(fav_dict)
  24. if self.config["filter"].get('收藏夹'):
  25. for i in self.config["filter"].get('收藏夹'):
  26. if i['key']=='mlid':
  27. i['value']=fav_list
  28. #用户userid
  29. userid=''
  30. def get_userid(self):
  31. #获取自己的userid(cookies拥有者)
  32. url = 'http://api.bilibili.com/x/space/myinfo'
  33. rsp = self.fetch(url, cookies=self.getCookie())
  34. content = rsp.text
  35. jo = json.loads(content)
  36. if jo['code'] == 0:
  37. return jo['data']['mid']
  38. def isVideoFormat(self,url):
  39. pass
  40. def manualVideoCheck(self):
  41. pass
  42. def homeContent(self,filter):
  43. result = {}
  44. cateManual = {
  45. "动态":"动态",
  46. "热门":"热门",
  47. "推荐":"推荐",
  48. "排行榜":"排行榜",
  49. "频道":"频道",
  50. "收藏夹":"收藏夹",
  51. "历史记录":"历史记录",
  52. "zane妈":"zane妈",
  53. "相声小品": "相声小品",
  54. "林芊妤":"林芊妤",
  55. "Zard": "Zard",
  56. "玩具汽车": "玩具汽车",
  57. "儿童": "儿童",
  58. "幼儿": "幼儿",
  59. "儿童玩具": "儿童玩具",
  60. "昆虫": "昆虫",
  61. "动物世界": "动物世界",
  62. "纪录片": "纪录片",
  63. "搞笑": "搞笑",
  64. "假窗-白噪音": "窗+白噪音",
  65. "演唱会": "演唱会"
  66. }
  67. classes = []
  68. for k in cateManual:
  69. classes.append({
  70. 'type_name':k,
  71. 'type_id':cateManual[k]
  72. })
  73. result['class'] = classes
  74. if(filter):
  75. result['filters'] = self.config['filter']
  76. return result
  77. def homeVideoContent(self):
  78. result = {
  79. 'list':[]
  80. }
  81. return result
  82. cookies = ''
  83. def getCookie(self):
  84. import requests
  85. import http.cookies
  86. ### 这里填cookie
  87. raw_cookie_line = ""
  88. simple_cookie = http.cookies.SimpleCookie(raw_cookie_line)
  89. cookie_jar = requests.cookies.RequestsCookieJar()
  90. cookie_jar.update(simple_cookie)
  91. return cookie_jar
  92. def get_rcmd(self,pg):
  93. result = {}
  94. url= 'https://api.bilibili.com/x/web-interface/index/top/feed/rcmd?y_num={0}&fresh_type=3&feed_version=SEO_VIDEO&fresh_idx_1h=1&fetch_row=1&fresh_idx=1&brush=0&homepage_ver=1&ps=20'.format(pg)
  95. rsp = self.fetch(url,cookies=self.getCookie())
  96. content = rsp.text
  97. jo = json.loads(content)
  98. if jo['code'] == 0:
  99. videos = []
  100. vodList = jo['data']['item']
  101. for vod in vodList:
  102. aid = str(vod['id']).strip()
  103. title = vod['title'].strip().replace("<em class=\"keyword\">","").replace("</em>","")
  104. img = vod['pic'].strip()
  105. remark = str(vod['duration']).strip()
  106. videos.append({
  107. "vod_id":aid,
  108. "vod_name":title,
  109. "vod_pic":img,
  110. "vod_remarks":remark
  111. })
  112. result['list'] = videos
  113. result['page'] = pg
  114. result['pagecount'] = 9999
  115. result['limit'] = 90
  116. result['total'] = 999999
  117. return result
  118. def get_dynamic(self,pg):
  119. result = {}
  120. if int(pg) > 1:
  121. return result
  122. offset = ''
  123. videos = []
  124. for i in range(0,10):
  125. url= 'https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/all?timezone_offset=-480&type=all&page={0}&offset={1}'.format(pg,offset)
  126. rsp = self.fetch(url,cookies=self.getCookie())
  127. content = rsp.text
  128. jo = json.loads(content)
  129. if jo['code'] == 0:
  130. offset = jo['data']['offset']
  131. vodList = jo['data']['items']
  132. for vod in vodList:
  133. if vod['type'] == 'DYNAMIC_TYPE_AV':
  134. ivod = vod['modules']['module_dynamic']['major']['archive']
  135. aid = str(ivod['aid']).strip()
  136. title = ivod['title'].strip().replace("<em class=\"keyword\">","").replace("</em>","")
  137. img = ivod['cover'].strip()
  138. remark = str(ivod['duration_text']).strip()
  139. videos.append({
  140. "vod_id":aid,
  141. "vod_name":title,
  142. "vod_pic":img,
  143. "vod_remarks":remark
  144. })
  145. result['list'] = videos
  146. result['page'] = pg
  147. result['pagecount'] = 9999
  148. result['limit'] = 90
  149. result['total'] = 999999
  150. return result
  151. def second_to_time(self,a):
  152. #将秒数转化为 时分秒的格式
  153. if a < 3600:
  154. return time.strftime("%M:%S", time.gmtime(a))
  155. else:
  156. return time.strftime("%H:%M:%S", time.gmtime(a))
  157. def get_history(self,pg):
  158. result = {}
  159. url = 'http://api.bilibili.com/x/v2/history?pn=%s' % pg
  160. rsp = self.fetch(url,cookies=self.getCookie())
  161. content = rsp.text
  162. jo = json.loads(content) #解析api接口,转化成json数据对象
  163. if jo['code'] == 0:
  164. videos = []
  165. vodList = jo['data']
  166. for vod in vodList:
  167. if vod['duration'] > 0: #筛选掉非视频的历史记录
  168. aid = str(vod["aid"]).strip() #获取 aid
  169. #获取标题
  170. title = vod["title"].replace("<em class=\"keyword\">", "").replace("</em>", "").replace("&quot;",
  171. '"')
  172. #封面图片
  173. img = vod["pic"].strip()
  174. #获取已观看时间
  175. if str(vod['progress'])=='-1':
  176. process=str(self.second_to_time(vod['duration'])).strip()
  177. else:
  178. process = str(self.second_to_time(vod['progress'])).strip()
  179. #获取视频总时长
  180. total_time= str(self.second_to_time(vod['duration'])).strip()
  181. #组合 已观看时间 / 总时长 ,赋值给 remark
  182. remark = process+' / '+total_time
  183. videos.append({
  184. "vod_id": aid,
  185. "vod_name": title,
  186. "vod_pic": img,
  187. "vod_remarks": remark
  188. })
  189. result['list'] = videos
  190. result['page'] = pg
  191. result['pagecount'] = 9999
  192. result['limit'] = 90
  193. result['total'] = 999999
  194. return result
  195. def get_hot(self,pg):
  196. result = {}
  197. url= 'https://api.bilibili.com/x/web-interface/popular?ps=20&pn={0}'.format(pg)
  198. rsp = self.fetch(url,cookies=self.getCookie())
  199. content = rsp.text
  200. jo = json.loads(content)
  201. if jo['code'] == 0:
  202. videos = []
  203. vodList = jo['data']['list']
  204. for vod in vodList:
  205. aid = str(vod['aid']).strip()
  206. title = vod['title'].strip().replace("<em class=\"keyword\">","").replace("</em>","")
  207. img = vod['pic'].strip()
  208. remark = str(vod['duration']).strip()
  209. videos.append({
  210. "vod_id":aid,
  211. "vod_name":title,
  212. "vod_pic":img,
  213. "vod_remarks":remark
  214. })
  215. result['list'] = videos
  216. result['page'] = pg
  217. result['pagecount'] = 9999
  218. result['limit'] = 90
  219. result['total'] = 999999
  220. return result
  221. def get_rank(self):
  222. result = {}
  223. url= 'https://api.bilibili.com/x/web-interface/ranking/v2?rid=0&type=all'
  224. rsp = self.fetch(url,cookies=self.getCookie())
  225. content = rsp.text
  226. jo = json.loads(content)
  227. if jo['code'] == 0:
  228. videos = []
  229. vodList = jo['data']['list']
  230. for vod in vodList:
  231. aid = str(vod['aid']).strip()
  232. title = vod['title'].strip().replace("<em class=\"keyword\">","").replace("</em>","")
  233. img = vod['pic'].strip()
  234. remark = str(vod['duration']).strip()
  235. videos.append({
  236. "vod_id":aid,
  237. "vod_name":title,
  238. "vod_pic":img,
  239. "vod_remarks":remark
  240. })
  241. result['list'] = videos
  242. result['page'] = 1
  243. result['pagecount'] = 1
  244. result['limit'] = 90
  245. result['total'] = 999999
  246. return result
  247. def get_channel(self,pg,cid):
  248. result = {}
  249. if int(pg) > 1:
  250. return result
  251. offset = ''
  252. videos = []
  253. for i in range(0,5):
  254. url= 'https://api.bilibili.com/x/web-interface/web/channel/multiple/list?channel_id={0}&sort_type=hot&offset={1}&page_size=30'.format(cid,offset)
  255. rsp = self.fetch(url,cookies=self.getCookie())
  256. content = rsp.text
  257. print(content)
  258. jo = json.loads(content)
  259. if jo['code'] == 0:
  260. offset = jo['data']['offset']
  261. vodList = jo['data']['list']
  262. for vod in vodList:
  263. if vod['card_type'] == 'rank':
  264. rankVods = vod['items']
  265. for ivod in rankVods:
  266. aid = str(ivod['id']).strip()
  267. title = ivod['name'].strip().replace("<em class=\"keyword\">","").replace("</em>","")
  268. img = ivod['cover'].strip()
  269. remark = str(ivod['duration']).strip()
  270. videos.append({
  271. "vod_id":aid,
  272. "vod_name":title,
  273. "vod_pic":img,
  274. "vod_remarks":remark
  275. })
  276. elif vod['card_type'] == 'archive':
  277. aid = str(vod['id']).strip()
  278. title = vod['name'].strip().replace("<em class=\"keyword\">","").replace("</em>","")
  279. img = vod['cover'].strip()
  280. remark = str(vod['duration']).strip()
  281. videos.append({
  282. "vod_id":aid,
  283. "vod_name":title,
  284. "vod_pic":img,
  285. "vod_remarks":remark
  286. })
  287. result['list'] = videos
  288. result['page'] = pg
  289. result['pagecount'] = 9999
  290. result['limit'] = 90
  291. result['total'] = 999999
  292. return result
  293. def get_fav_detail(self,pg,mlid,order):
  294. result = {}
  295. url = 'http://api.bilibili.com/x/v3/fav/resource/list?media_id=%s&order=%s&pn=%s&ps=20&platform=web&type=0'%(mlid,order,pg)
  296. rsp = self.fetch(url, cookies=self.getCookie())
  297. content = rsp.text
  298. jo = json.loads(content)
  299. videos = []
  300. vodList = jo['data']['medias']
  301. for vod in vodList:
  302. aid = str(vod['id']).strip()
  303. title = vod['title'].replace("<em class=\"keyword\">", "").replace("</em>", "").replace("&quot;", '"')
  304. img = vod['cover'].strip()
  305. remark = str( self.second_to_time(vod['duration'])).strip()
  306. videos.append({
  307. "vod_id": aid,
  308. "vod_name": title,
  309. "vod_pic": img,
  310. "vod_remarks": remark
  311. })
  312. #videos=self.filter_duration(videos, duration_diff)
  313. result['list'] = videos
  314. result['page'] = pg
  315. result['pagecount'] = 9999
  316. result['limit'] = 90
  317. result['total'] = 999999
  318. return result
  319. def get_fav(self,pg,order,extend):
  320. #获取自己的up_mid(也就是用户uid)
  321. mlid=''
  322. fav_config=self.config["filter"].get('收藏夹')
  323. #默认显示第一个收藏夹内容
  324. if fav_config:
  325. for i in fav_config:
  326. if i['key']=='mlid':
  327. if len(i['value'])>0:
  328. mlid=i['value'][0]['v']
  329. #print(self.config["filter"].get('收藏夹'))
  330. if 'mlid' in extend:
  331. mlid = extend['mlid']
  332. if mlid:
  333. return self.get_fav_detail(pg=pg,mlid=mlid,order=order)
  334. else:
  335. return {}
  336. def categoryContent(self,tid,pg,filter,extend):
  337. print(tid,pg,filter,extend)
  338. result = {}
  339. if tid == "热门":
  340. return self.get_hot(pg=pg)
  341. if tid == "排行榜" :
  342. return self.get_rank()
  343. if tid == '动态':
  344. return self.get_dynamic(pg=pg)
  345. if tid == '历史记录':
  346. return self.get_history(pg=pg)
  347. if tid == '推荐':
  348. return self.get_rcmd(pg=pg)
  349. if tid == "收藏夹":
  350. self.box_video_type = '收藏夹'
  351. order = 'mtime'
  352. if 'order' in extend:
  353. order = extend['order']
  354. return self.get_fav(pg=pg, order=order,extend=extend)
  355. if tid == '频道':
  356. cid = '9222'
  357. if 'cid' in extend:
  358. cid = extend['cid']
  359. return self.get_channel(pg=pg,cid=cid)
  360. url = 'https://api.bilibili.com/x/web-interface/search/type?search_type=video&keyword={0}&page={1}'.format(tid,pg)
  361. if len(self.cookies) <= 0:
  362. self.getCookie()
  363. rsp = self.fetch(url,cookies=self.getCookie())
  364. content = rsp.text
  365. jo = json.loads(content)
  366. if jo['code'] != 0:
  367. rspRetry = self.fetch(url,cookies=self.getCookie())
  368. content = rspRetry.text
  369. jo = json.loads(content)
  370. videos = []
  371. vodList = jo['data']['result']
  372. for vod in vodList:
  373. aid = str(vod['aid']).strip()
  374. title = tid + ":" + vod['title'].strip().replace("<em class=\"keyword\">","").replace("</em>","")
  375. img = 'https:' + vod['pic'].strip()
  376. remark = str(vod['duration']).strip()
  377. videos.append({
  378. "vod_id":aid,
  379. "vod_name":title,
  380. "vod_pic":img,
  381. "vod_remarks":remark
  382. })
  383. result['list'] = videos
  384. result['page'] = pg
  385. result['pagecount'] = 9999
  386. result['limit'] = 90
  387. result['total'] = 999999
  388. return result
  389. def cleanSpace(self,str):
  390. return str.replace('\n','').replace('\t','').replace('\r','').replace(' ','')
  391. def detailContent(self,array):
  392. aid = array[0]
  393. url = "https://api.bilibili.com/x/web-interface/view?aid={0}".format(aid)
  394. rsp = self.fetch(url,headers=self.header,cookies=self.getCookie())
  395. jRoot = json.loads(rsp.text)
  396. jo = jRoot['data']
  397. title = jo['title'].replace("<em class=\"keyword\">","").replace("</em>","")
  398. pic = jo['pic']
  399. desc = jo['desc']
  400. typeName = jo['tname']
  401. vod = {
  402. "vod_id":aid,
  403. "vod_name":title,
  404. "vod_pic":pic,
  405. "type_name":typeName,
  406. "vod_year":"",
  407. "vod_area":"bilidanmu",
  408. "vod_remarks":"",
  409. "vod_actor":jo['owner']['name'],
  410. "vod_director":jo['owner']['name'],
  411. "vod_content":desc
  412. }
  413. ja = jo['pages']
  414. playUrl = ''
  415. for tmpJo in ja:
  416. cid = tmpJo['cid']
  417. part = tmpJo['part']
  418. playUrl = playUrl + '{0}${1}_{2}#'.format(part,aid,cid)
  419. vod['vod_play_from'] = 'B站'
  420. vod['vod_play_url'] = playUrl
  421. result = {
  422. 'list':[
  423. vod
  424. ]
  425. }
  426. return result
  427. def searchContent(self,key,quick):
  428. search = self.categoryContent(tid=key,pg=1,filter=None,extend=None)
  429. result = {
  430. 'list':search['list']
  431. }
  432. return result
  433. def playerContent(self,flag,id,vipFlags):
  434. # https://www.555dianying.cc/vodplay/static/js/playerconfig.js
  435. result = {}
  436. ids = id.split("_")
  437. url = 'https://api.bilibili.com:443/x/player/playurl?avid={0}&cid=%20%20{1}&qn=112'.format(ids[0],ids[1])
  438. rsp = self.fetch(url,cookies=self.getCookie())
  439. jRoot = json.loads(rsp.text)
  440. jo = jRoot['data']
  441. ja = jo['durl']
  442. maxSize = -1
  443. position = -1
  444. for i in range(len(ja)):
  445. tmpJo = ja[i]
  446. if maxSize < int(tmpJo['size']):
  447. maxSize = int(tmpJo['size'])
  448. position = i
  449. url = ''
  450. if len(ja) > 0:
  451. if position == -1:
  452. position = 0
  453. url = ja[position]['url']
  454. result["parse"] = 0
  455. result["playUrl"] = ''
  456. result["url"] = url
  457. result["header"] = {
  458. "Referer":"https://www.bilibili.com",
  459. "User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
  460. }
  461. result["contentType"] = 'video/x-flv'
  462. return result
  463. config = {
  464. "player": {},
  465. "filter": {"收藏夹": [{
  466. "key": "order",
  467. "name": "排序",
  468. "value": [
  469. {
  470. "n": "收藏时间",
  471. "v": "mtime"
  472. },
  473. {
  474. "n": "播放量",
  475. "v": "view"
  476. },
  477. {
  478. "n": "投稿时间",
  479. "v": "pubtime"
  480. }
  481. ]
  482. },
  483. {
  484. "key": "mlid",
  485. "name": "收藏夹分区",
  486. "value": [
  487. ]
  488. }],
  489. "频道":[{"key":"cid","name":"分类","value":[{'n': '搞笑', 'v': 1833}, {'n': '美食', 'v': 20215}, {'n': '鬼畜', 'v': 68}, {'n': '天官赐福', 'v': 2544632}, {'n': '英雄联盟', 'v': 9222}, {'n': '美妆', 'v': 832569}, {'n': '必剪创作', 'v': 15775524}, {'n': '单机游戏', 'v': 17683}, {'n': '搞笑', 'v': 1833}, {'n': '科普', 'v': 5417}, {'n': '影视剪辑', 'v': 318570}, {'n': 'vlog', 'v': 2511282}, {'n': '声优', 'v': 1645}, {'n': '动漫杂谈', 'v': 530918}, {'n': 'COSPLAY', 'v': 88}, {'n': '漫展', 'v': 22551}, {'n': 'MAD', 'v': 281}, {'n': '手书', 'v': 608}, {'n': '英雄联盟', 'v': 9222}, {'n': '王者荣耀', 'v': 1404375}, {'n': '单机游戏', 'v': 17683}, {'n': '我的世界', 'v': 47988}, {'n': '守望先锋', 'v': 926988}, {'n': '恐怖游戏', 'v': 17941}, {'n': '英雄联盟', 'v': 9222}, {'n': '王者荣耀', 'v': 1404375}, {'n': '守望先锋', 'v': 926988}, {'n': '炉石传说', 'v': 318756}, {'n': 'DOTA2', 'v': 47034}, {'n': 'CS:GO', 'v': 99842}, {'n': '鬼畜', 'v': 68}, {'n': '鬼畜调教', 'v': 497221}, {'n': '诸葛亮', 'v': 51330}, {'n': '二次元鬼畜', 'v': 29415}, {'n': '王司徒', 'v': 987568}, {'n': '万恶之源', 'v': 21}, {'n': '美妆', 'v': 832569}, {'n': '服饰', 'v': 313718}, {'n': '减肥', 'v': 20805}, {'n': '穿搭', 'v': 1139735}, {'n': '发型', 'v': 13896}, {'n': '化妆教程', 'v': 261355}, {'n': '电音', 'v': 14426}, {'n': '欧美音乐', 'v': 17034}, {'n': '中文翻唱', 'v': 8043}, {'n': '洛天依', 'v': 8564}, {'n': '翻唱', 'v': 386}, {'n': '日文翻唱', 'v': 85689}, {'n': '科普', 'v': 5417}, {'n': '技术宅', 'v': 368}, {'n': '历史', 'v': 221}, {'n': '科学', 'v': 1364}, {'n': '人文', 'v': 40737}, {'n': '科幻', 'v': 5251}, {'n': '手机', 'v': 7007}, {'n': '手机评测', 'v': 143751}, {'n': '电脑', 'v': 1339}, {'n': '摄影', 'v': 25450}, {'n': '笔记本', 'v': 1338}, {'n': '装机', 'v': 413678}, {'n': '课堂教育', 'v': 3233375}, {'n': '公开课', 'v': 31864}, {'n': '演讲', 'v': 2739}, {'n': 'PS教程', 'v': 335752}, {'n': '编程', 'v': 28784}, {'n': '英语学习', 'v': 360005}, {'n': '喵星人', 'v': 1562}, {'n': '萌宠', 'v': 6943}, {'n': '汪星人', 'v': 9955}, {'n': '大熊猫', 'v': 22919}, {'n': '柴犬', 'v': 30239}, {'n': '吱星人', 'v': 6947}, {'n': '美食', 'v': 20215}, {'n': '甜点', 'v': 35505}, {'n': '吃货', 'v': 6942}, {'n': '厨艺', 'v': 239855}, {'n': '烘焙', 'v': 218245}, {'n': '街头美食', 'v': 1139423}, {'n': 'A.I.Channel', 'v': 3232987}, {'n': '虚拟UP主', 'v': 4429874}, {'n': '神楽めあ', 'v': 7562902}, {'n': '白上吹雪', 'v': 7355391}, {'n': '彩虹社', 'v': 1099778}, {'n': 'hololive', 'v': 8751822}, {'n': 'EXO', 'v': 191032}, {'n': '防弹少年团', 'v': 536395}, {'n': '肖战', 'v': 1450880}, {'n': '王一博', 'v': 902215}, {'n': '易烊千玺', 'v': 15186}, {'n': 'BLACKPINK', 'v': 1749296}, {'n': '宅舞', 'v': 9500}, {'n': '街舞', 'v': 5574}, {'n': '舞蹈教学', 'v': 157087}, {'n': '明星舞蹈', 'v': 6012204}, {'n': '韩舞', 'v': 159571}, {'n': '古典舞', 'v': 161247}, {'n': '旅游', 'v': 6572}, {'n': '绘画', 'v': 2800}, {'n': '手工', 'v': 11265}, {'n': 'vlog', 'v': 2511282}, {'n': 'DIY', 'v': 3620}, {'n': '手绘', 'v': 1210}, {'n': '综艺', 'v': 11687}, {'n': '国家宝藏', 'v': 105286}, {'n': '脱口秀', 'v': 4346}, {'n': '日本综艺', 'v': 81265}, {'n': '国内综艺', 'v': 641033}, {'n': '人类观察', 'v': 282453}, {'n': '影评', 'v': 111377}, {'n': '电影解说', 'v': 1161117}, {'n': '影视混剪', 'v': 882598}, {'n': '影视剪辑', 'v': 318570}, {'n': '漫威', 'v': 138600}, {'n': '超级英雄', 'v': 13881}, {'n': '影视混剪', 'v': 882598}, {'n': '影视剪辑', 'v': 318570}, {'n': '诸葛亮', 'v': 51330}, {'n': '韩剧', 'v': 53056}, {'n': '王司徒', 'v': 987568}, {'n': '泰剧', 'v': 179103}, {'n': '郭德纲', 'v': 8892}, {'n': '相声', 'v': 5783}, {'n': '张云雷', 'v': 1093613}, {'n': '秦霄贤', 'v': 3327368}, {'n': '孟鹤堂', 'v': 1482612}, {'n': '岳云鹏', 'v': 24467}, {'n': '假面骑士', 'v': 2069}, {'n': '特摄', 'v': 2947}, {'n': '奥特曼', 'v': 963}, {'n': '迪迦奥特曼', 'v': 13784}, {'n': '超级战队', 'v': 32881}, {'n': '铠甲勇士', 'v': 11564}, {'n': '健身', 'v': 4344}, {'n': '篮球', 'v': 1265}, {'n': '体育', 'v': 41103}, {'n': '帕梅拉', 'v': 257412}, {'n': '极限运动', 'v': 8876}, {'n': '足球', 'v': 584}, {'n': '星海', 'v': 178862}, {'n': '张召忠', 'v': 116480}, {'n': '航母', 'v': 57834}, {'n': '航天', 'v': 81618}, {'n': '导弹', 'v': 14958}, {'n': '战斗机', 'v': 24304}]}]}
  490. }
  491. header = {}
  492. def localProxy(self,param):
  493. return [200, "video/MP2T", action, ""]