py_bilivd.py 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  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. from requests import session, utils
  8. import time
  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. if len(self.cookies) <= 0:
  45. self.getCookie()
  46. cateManual = {
  47. "频道": "频道",
  48. "热门": "热门",
  49. "推荐": "推荐",
  50. "排行榜": "排行榜",
  51. "健身": "刘畊宏 9月21日",
  52. "演唱会": "演唱会",
  53. "动物世界": "动物世界",
  54. "相声小品": "相声小品",
  55. "假窗-白噪音": "窗+白噪音"
  56. }
  57. if self.login:
  58. cateManual.update({"动态": "动态"})
  59. cateManual.update({"收藏夹": "收藏夹"})
  60. cateManual.update({"历史记录": "历史记录"})
  61. classes = []
  62. for k in cateManual:
  63. classes.append({
  64. 'type_name': k,
  65. 'type_id': cateManual[k]
  66. })
  67. result['class'] = classes
  68. if (filter):
  69. result['filters'] = self.config['filter']
  70. return result
  71. def homeVideoContent(self):
  72. tid = self.homeContent(False)['class'][0]['type_id']
  73. return self.categoryContent(tid, 1, False, {})
  74. def get_rcmd(self,pg):
  75. result = {}
  76. 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)
  77. rsp = self.fetch(url,cookies=self.getCookie())
  78. content = rsp.text
  79. jo = json.loads(content)
  80. if jo['code'] == 0:
  81. videos = []
  82. vodList = jo['data']['item']
  83. for vod in vodList:
  84. aid = str(vod['id']).strip()
  85. title = vod['title'].strip().replace("<em class=\"keyword\">","").replace("</em>","")
  86. img = vod['pic'].strip()
  87. remark = str(vod['duration']).strip()
  88. videos.append({
  89. "vod_id":aid,
  90. "vod_name":title,
  91. "vod_pic":img,
  92. "vod_remarks":remark
  93. })
  94. result['list'] = videos
  95. result['page'] = pg
  96. result['pagecount'] = 9999
  97. result['limit'] = 90
  98. result['total'] = 999999
  99. return result
  100. def get_dynamic(self,pg):
  101. result = {}
  102. if int(pg) > 1:
  103. return result
  104. offset = ''
  105. videos = []
  106. for i in range(0,10):
  107. url= 'https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/all?timezone_offset=-480&type=all&page={0}&offset={1}'.format(pg,offset)
  108. rsp = self.fetch(url,cookies=self.getCookie())
  109. content = rsp.text
  110. jo = json.loads(content)
  111. if jo['code'] == 0:
  112. offset = jo['data']['offset']
  113. vodList = jo['data']['items']
  114. for vod in vodList:
  115. if vod['type'] == 'DYNAMIC_TYPE_AV':
  116. ivod = vod['modules']['module_dynamic']['major']['archive']
  117. aid = str(ivod['aid']).strip()
  118. title = ivod['title'].strip().replace("<em class=\"keyword\">","").replace("</em>","")
  119. img = ivod['cover'].strip()
  120. remark = str(ivod['duration_text']).strip()
  121. videos.append({
  122. "vod_id":aid,
  123. "vod_name":title,
  124. "vod_pic":img,
  125. "vod_remarks":remark
  126. })
  127. result['list'] = videos
  128. result['page'] = pg
  129. result['pagecount'] = 9999
  130. result['limit'] = 90
  131. result['total'] = 999999
  132. return result
  133. def second_to_time(self, a):
  134. # 将秒数转化为 时分秒的格式
  135. if a < 3600:
  136. return time.strftime("%M:%S", time.gmtime(a))
  137. else:
  138. return time.strftime("%H:%M:%S", time.gmtime(a))
  139. def get_history(self, pg):
  140. result = {}
  141. url = 'http://api.bilibili.com/x/v2/history?pn=%s' % pg
  142. rsp = self.fetch(url, cookies=self.getCookie())
  143. content = rsp.text
  144. jo = json.loads(content) # 解析api接口,转化成json数据对象
  145. if jo['code'] == 0:
  146. videos = []
  147. vodList = jo['data']
  148. for vod in vodList:
  149. if vod['duration'] > 0: # 筛选掉非视频的历史记录
  150. aid = str(vod["aid"]).strip() # 获取 aid
  151. # 获取标题
  152. title = vod["title"].replace("<em class=\"keyword\">", "").replace("</em>", "").replace("&quot;",'"')
  153. # 封面图片
  154. img = vod["pic"].strip()
  155. # 获取已观看时间
  156. if str(vod['progress']) == '-1':
  157. process = str(self.second_to_time(vod['duration'])).strip()
  158. else:
  159. process = str(self.second_to_time(vod['progress'])).strip()
  160. # 获取视频总时长
  161. total_time = str(self.second_to_time(vod['duration'])).strip()
  162. # 组合 已观看时间 / 总时长 ,赋值给 remark
  163. remark = process + ' / ' + total_time
  164. videos.append({
  165. "vod_id": aid,
  166. "vod_name": title,
  167. "vod_pic": img,
  168. "vod_remarks": remark
  169. })
  170. result['list'] = videos
  171. result['page'] = pg
  172. result['pagecount'] = 9999
  173. result['limit'] = 90
  174. result['total'] = 999999
  175. return result
  176. def get_hot(self, pg):
  177. result = {}
  178. url = 'https://api.bilibili.com/x/web-interface/popular?ps=20&pn={0}'.format(pg)
  179. rsp = self.fetch(url, cookies=self.getCookie())
  180. content = rsp.text
  181. jo = json.loads(content)
  182. if jo['code'] == 0:
  183. videos = []
  184. vodList = jo['data']['list']
  185. for vod in vodList:
  186. aid = str(vod['aid']).strip()
  187. title = vod['title'].strip().replace("<em class=\"keyword\">", "").replace("</em>", "")
  188. img = vod['pic'].strip()
  189. remark = str(vod['duration']).strip()
  190. videos.append({
  191. "vod_id": aid,
  192. "vod_name": title,
  193. "vod_pic": img,
  194. "vod_remarks": remark
  195. })
  196. result['list'] = videos
  197. result['page'] = pg
  198. result['pagecount'] = 9999
  199. result['limit'] = 90
  200. result['total'] = 999999
  201. return result
  202. def get_rank(self):
  203. result = {}
  204. url = 'https://api.bilibili.com/x/web-interface/ranking/v2?rid=0&type=all'
  205. rsp = self.fetch(url, cookies=self.getCookie())
  206. content = rsp.text
  207. jo = json.loads(content)
  208. if jo['code'] == 0:
  209. videos = []
  210. vodList = jo['data']['list']
  211. for vod in vodList:
  212. aid = str(vod['aid']).strip()
  213. title = vod['title'].strip().replace("<em class=\"keyword\">", "").replace("</em>", "")
  214. img = vod['pic'].strip()
  215. remark = str(vod['duration']).strip()
  216. videos.append({
  217. "vod_id": aid,
  218. "vod_name": title,
  219. "vod_pic": img,
  220. "vod_remarks": remark
  221. })
  222. result['list'] = videos
  223. result['page'] = 1
  224. result['pagecount'] = 1
  225. result['limit'] = 90
  226. result['total'] = 999999
  227. return result
  228. def get_channel(self, pg, cid):
  229. result = {}
  230. if int(pg) > 1:
  231. return result
  232. offset = ''
  233. videos = []
  234. for i in range(0, 5):
  235. 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)
  236. rsp = self.fetch(url, cookies=self.getCookie())
  237. content = rsp.text
  238. print(content)
  239. jo = json.loads(content)
  240. if jo['code'] == 0:
  241. offset = jo['data']['offset']
  242. vodList = jo['data']['list']
  243. for vod in vodList:
  244. if vod['card_type'] == 'rank':
  245. rankVods = vod['items']
  246. for ivod in rankVods:
  247. aid = str(ivod['id']).strip()
  248. title = ivod['name'].strip().replace("<em class=\"keyword\">", "").replace("</em>", "")
  249. img = ivod['cover'].strip()
  250. remark = str(ivod['duration']).strip()
  251. videos.append({
  252. "vod_id": aid,
  253. "vod_name": title,
  254. "vod_pic": img,
  255. "vod_remarks": remark
  256. })
  257. elif vod['card_type'] == 'archive':
  258. aid = str(vod['id']).strip()
  259. title = vod['name'].strip().replace("<em class=\"keyword\">", "").replace("</em>", "")
  260. img = vod['cover'].strip()
  261. remark = str(vod['duration']).strip()
  262. videos.append({
  263. "vod_id": aid,
  264. "vod_name": title,
  265. "vod_pic": img,
  266. "vod_remarks": remark
  267. })
  268. result['list'] = videos
  269. result['page'] = pg
  270. result['pagecount'] = 9999
  271. result['limit'] = 90
  272. result['total'] = 999999
  273. return result
  274. def get_fav_detail(self, pg, mlid, order):
  275. result = {}
  276. url = 'http://api.bilibili.com/x/v3/fav/resource/list?media_id=%s&order=%s&pn=%s&ps=20&platform=web&type=0' % (
  277. mlid, order, pg)
  278. rsp = self.fetch(url, cookies=self.getCookie())
  279. content = rsp.text
  280. jo = json.loads(content)
  281. videos = []
  282. vodList = jo['data']['medias']
  283. for vod in vodList:
  284. aid = str(vod['id']).strip()
  285. title = vod['title'].replace("<em class=\"keyword\">", "").replace("</em>", "").replace("&quot;", '"')
  286. img = vod['cover'].strip()
  287. remark = str(self.second_to_time(vod['duration'])).strip()
  288. videos.append({
  289. "vod_id": aid,
  290. "vod_name": title,
  291. "vod_pic": img,
  292. "vod_remarks": remark
  293. })
  294. # videos=self.filter_duration(videos, duration_diff)
  295. result['list'] = videos
  296. result['page'] = pg
  297. result['pagecount'] = 9999
  298. result['limit'] = 90
  299. result['total'] = 999999
  300. return result
  301. def get_fav(self, pg, order, extend):
  302. # 获取自己的up_mid(也就是用户uid)
  303. mlid = ''
  304. fav_config = self.config["filter"].get('收藏夹')
  305. # 默认显示第一个收藏夹内容
  306. if fav_config:
  307. for i in fav_config:
  308. if i['key'] == 'mlid':
  309. if len(i['value']) > 0:
  310. mlid = i['value'][0]['v']
  311. if 'mlid' in extend:
  312. mlid = extend['mlid']
  313. if mlid:
  314. return self.get_fav_detail(pg=pg, mlid=mlid, order=order)
  315. else:
  316. return {}
  317. cookies = ''
  318. login = False
  319. def getCookie(self):
  320. try:
  321. cookies_str = self.fetch("cook所在链接").text
  322. cookies_dic = dict([co.strip().split('=') for co in cookies_str.split(';')])
  323. rsp = session()
  324. cookies_jar = utils.cookiejar_from_dict(cookies_dic)
  325. rsp.cookies = cookies_jar
  326. content = self.fetch("http://api.bilibili.com/x/web-interface/nav", cookies=rsp.cookies)
  327. res = json.loads(content.text)
  328. except:
  329. res = {}
  330. res["code"] = 404
  331. if res["code"] == 0:
  332. self.login = True
  333. self.cookies = rsp.cookies
  334. else:
  335. rsp = self.fetch("https://www.bilibili.com/")
  336. self.cookies = rsp.cookies
  337. self.login = False
  338. return rsp.cookies
  339. def categoryContent(self, tid, pg, filter, extend):
  340. result = {}
  341. if tid == "热门":
  342. return self.get_hot(pg=pg)
  343. if tid == "排行榜":
  344. return self.get_rank()
  345. if tid == '动态':
  346. return self.get_dynamic(pg=pg)
  347. if tid == '历史记录':
  348. return self.get_history(pg=pg)
  349. if tid == '推荐':
  350. return self.get_rcmd(pg=pg)
  351. if tid == "收藏夹":
  352. self.box_video_type = '收藏夹'
  353. order = 'mtime'
  354. if 'order' in extend:
  355. order = extend['order']
  356. return self.get_fav(pg=pg, order=order, extend=extend)
  357. if tid == '频道':
  358. cid = '9222'
  359. if 'cid' in extend:
  360. cid = extend['cid']
  361. return self.get_channel(pg=pg, cid=cid)
  362. url = 'https://api.bilibili.com/x/web-interface/search/type?search_type=video&keyword={0}&page={1}'.format(tid, pg)
  363. if len(self.cookies) <= 0:
  364. self.getCookie()
  365. rsp = self.fetch(url, cookies=self.cookies)
  366. content = rsp.text
  367. jo = json.loads(content)
  368. videos = []
  369. vodList = jo['data']['result']
  370. for vod in vodList:
  371. aid = str(vod['aid']).strip()
  372. title = vod['title'].replace("<em class=\"keyword\">", "").replace("</em>", "").replace("&quot;", '"')
  373. img = 'https:' + vod['pic'].strip()
  374. remark = str(vod['duration']).strip()
  375. videos.append({
  376. "vod_id": aid,
  377. "vod_name": title,
  378. "vod_pic": img,
  379. "vod_remarks": remark
  380. })
  381. result['list'] = videos
  382. result['page'] = pg
  383. result['pagecount'] = 9999
  384. result['limit'] = 90
  385. result['total'] = 999999
  386. return result
  387. def cleanSpace(self, str):
  388. return str.replace('\n', '').replace('\t', '').replace('\r', '').replace(' ', '')
  389. def detailContent(self, array):
  390. aid = array[0]
  391. url = "https://api.bilibili.com/x/web-interface/view?aid={0}".format(aid)
  392. rsp = self.fetch(url, headers=self.header)
  393. jRoot = json.loads(rsp.text)
  394. jo = jRoot['data']
  395. title = jo['title'].replace("<em class=\"keyword\">", "").replace("</em>", "")
  396. pic = jo['pic']
  397. desc = jo['desc']
  398. timeStamp = jo['pubdate']
  399. timeArray = time.localtime(timeStamp)
  400. year = str(time.strftime("%Y", timeArray))
  401. dire = jo['owner']['name']
  402. typeName = jo['tname']
  403. remark = str(jo['duration']).strip()
  404. vod = {
  405. "vod_id": aid,
  406. "vod_name": title,
  407. "vod_pic": pic,
  408. "type_name": typeName,
  409. "vod_year": year,
  410. "vod_area": "",
  411. "vod_remarks": remark,
  412. "vod_actor": "",
  413. "vod_director": dire,
  414. "vod_content": desc
  415. }
  416. ja = jo['pages']
  417. playUrl = ''
  418. for tmpJo in ja:
  419. cid = tmpJo['cid']
  420. part = tmpJo['part'].replace("#", "-")
  421. playUrl = playUrl + '{0}${1}_{2}#'.format(part, aid, cid)
  422. vod['vod_play_from'] = 'B站视频'
  423. vod['vod_play_url'] = playUrl
  424. result = {
  425. 'list': [
  426. vod
  427. ]
  428. }
  429. return result
  430. def searchContent(self, key, quick):
  431. header = {
  432. "Referer": "https://www.bilibili.com",
  433. "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"
  434. }
  435. url = 'https://api.bilibili.com/x/web-interface/search/type?search_type=video&keyword={0}'.format(key)
  436. if len(self.cookies) <= 0:
  437. self.getCookie()
  438. rsp = self.fetch(url, cookies=self.cookies,headers=header)
  439. content = rsp.text
  440. jo = json.loads(content)
  441. if jo['code'] != 0:
  442. rspRetry = self.fetch(url, cookies=self.getCookie())
  443. content = rspRetry.text
  444. jo = json.loads(content)
  445. videos = []
  446. vodList = jo['data']['result']
  447. for vod in vodList:
  448. aid = str(vod['aid']).strip()
  449. title = vod['title'].replace("<em class=\"keyword\">", "").replace("</em>", "").replace("&quot;", '"')
  450. img = 'https:' + vod['pic'].strip()
  451. remark = str(vod['duration']).strip()
  452. videos.append({
  453. "vod_id": aid,
  454. "vod_name": title,
  455. "vod_pic": img,
  456. "vod_remarks": remark
  457. })
  458. result = {
  459. 'list': videos
  460. }
  461. return result
  462. def playerContent(self, flag, id, vipFlags):
  463. result = {}
  464. ids = id.split("_")
  465. url = 'https://api.bilibili.com:443/x/player/playurl?avid={0}&cid={1}&qn=120&fnval=0&128=128&fourk=1'.format(ids[0], ids[1])
  466. if len(self.cookies) <= 0:
  467. self.getCookie()
  468. rsp = self.fetch(url, cookies=self.cookies)
  469. jRoot = json.loads(rsp.text)
  470. jo = jRoot['data']
  471. ja = jo['durl']
  472. maxSize = -1
  473. position = -1
  474. for i in range(len(ja)):
  475. tmpJo = ja[i]
  476. if maxSize < int(tmpJo['size']):
  477. maxSize = int(tmpJo['size'])
  478. position = i
  479. url = ''
  480. if len(ja) > 0:
  481. if position == -1:
  482. position = 0
  483. url = ja[position]['url']
  484. result["parse"] = 0
  485. result["playUrl"] = ''
  486. result["url"] = url
  487. result["header"] = {
  488. "Referer": "https://www.bilibili.com",
  489. "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"
  490. }
  491. result["contentType"] = 'video/mp4'
  492. return result
  493. config = {
  494. "player": {},
  495. "filter": {"收藏夹": [{"key": "order","name": "排序","value": [{"n": "收藏时间","v": "mtime"},{"n": "播放量","v": "view"},{"n": "投稿时间","v": "pubtime"}]},{"key": "mlid","name": "收藏夹分区","value": []}],"频道":[{"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}]}]}
  496. }
  497. header = {}
  498. def localProxy(self, param):
  499. return [200, "video/MP2T", action, ""]