两个BT.py 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. # File : 两个BT.py
  4. # Author: DaShenHan&道长-----先苦后甜,任凭晚风拂柳颜------
  5. # Author's Blog: https://blog.csdn.net/qq_32394351
  6. # Date : 2024/1/8
  7. import os.path
  8. import sys
  9. sys.path.append('..')
  10. try:
  11. # from base.spider import Spider as BaseSpider
  12. from base.spider import BaseSpider
  13. except ImportError:
  14. from t4.base.spider import BaseSpider
  15. import json
  16. import time
  17. import base64
  18. import re
  19. from pathlib import Path
  20. import io
  21. import tokenize
  22. from urllib.parse import quote
  23. from Crypto.Cipher import AES, PKCS1_v1_5 as PKCS1_cipher
  24. from Crypto.Util.Padding import unpad
  25. """
  26. 配置示例:
  27. t4的配置里ext节点会自动变成api对应query参数extend,但t4的ext字符串不支持路径格式,比如./开头或者.json结尾
  28. api里会自动含有ext参数是base64编码后的选中的筛选条件
  29. {
  30. "key":"hipy_t4_两个BT",
  31. "name":"两个BT(hipy_t4)",
  32. "type":4,
  33. "api":"http://192.168.31.49:5707/api/v1/vod/两个BT?api_ext={{host}}/txt/hipy/两个BT.json",
  34. "searchable":1,
  35. "quickSearch":0,
  36. "filterable":1,
  37. "ext":"两个BT"
  38. },
  39. {
  40. "key": "hipy_t3_两个BT",
  41. "name": "两个BT(hipy_t3)",
  42. "type": 3,
  43. "api": "{{host}}/txt/hipy/两个BT.py",
  44. "searchable": 1,
  45. "quickSearch": 0,
  46. "filterable": 1,
  47. "ext": "{{host}}/txt/hipy/两个BT.json"
  48. },
  49. """
  50. class Spider(BaseSpider): # 元类 默认的元类 type
  51. api: str = 'https://www.bttwo.net'
  52. api_ext_file: str = api + '/movie_bt/'
  53. def getName(self):
  54. return "规则名称如:基础示例"
  55. def init_api_ext_file(self):
  56. """
  57. 这个函数用于初始化py文件对应的json文件,用于存筛选规则。
  58. 执行此函数会自动生成筛选文件
  59. @return:
  60. """
  61. ext_file = __file__.replace('.py', '.json')
  62. print(f'ext_file:{ext_file}')
  63. # 全部电影网页: https://www.bttwo.net/movie_bt/
  64. # ==================== 获取全部电影筛选条件 ======================
  65. r = self.fetch(self.api_ext_file)
  66. html = r.text
  67. html = self.html(html)
  68. filter_movie_bt = []
  69. lis = html.xpath('//*[@id="beautiful-taxonomy-filters-tax-movie_bt_cat"]/a')
  70. li_value = []
  71. for li in lis:
  72. li_value.append({
  73. 'n': ''.join(li.xpath('./text()')),
  74. 'v': ''.join(li.xpath('@cat-url')).replace(self.api, ''),
  75. })
  76. # print(li_value)
  77. filter_movie_bt.append({
  78. "key": "cat",
  79. "name": "地区",
  80. "value": li_value
  81. })
  82. lis = html.xpath('//*[@id="beautiful-taxonomy-filters-tax-movie_bt_year"]/a')
  83. li_value = []
  84. for li in lis:
  85. li_value.append({
  86. 'n': ''.join(li.xpath('./text()')),
  87. 'v': ''.join(li.xpath('@cat-url')).replace(self.api, ''),
  88. })
  89. # print(li_value)
  90. filter_movie_bt.append({
  91. "key": "year",
  92. "name": "年份",
  93. "value": li_value
  94. })
  95. lis = html.xpath('//*[@id="beautiful-taxonomy-filters-tax-movie_bt_tags"]/a')
  96. li_value = []
  97. for li in lis:
  98. li_value.append({
  99. 'n': ''.join(li.xpath('./text()')),
  100. 'v': ''.join(li.xpath('@cat-url')).replace(self.api, ''),
  101. })
  102. # print(li_value)
  103. filter_movie_bt.append({
  104. "key": "tags",
  105. "name": "影片类型",
  106. "value": li_value
  107. })
  108. print(filter_movie_bt)
  109. ext_file_dict = {
  110. "movie_bt": filter_movie_bt,
  111. }
  112. with open(ext_file, mode='w+', encoding='utf-8') as f:
  113. f.write(json.dumps(ext_file_dict, ensure_ascii=False))
  114. def init(self, extend=""):
  115. """
  116. 初始化加载extend,一般与py文件名同名的json文件作为扩展筛选
  117. @param extend:
  118. @return:
  119. """
  120. def init_file(ext_file):
  121. """
  122. 根据与py对应的json文件去扩展规则的筛选条件
  123. """
  124. ext_file = Path(ext_file).as_posix()
  125. if os.path.exists(ext_file):
  126. with open(ext_file, mode='r', encoding='utf-8') as f:
  127. try:
  128. ext_dict = json.loads(f.read())
  129. self.config['filter'].update(ext_dict)
  130. except Exception as e:
  131. print(f'更新扩展筛选条件发生错误:{e}')
  132. ext = self.extend
  133. print(f"============{extend}============")
  134. if isinstance(ext, str):
  135. if ext.startswith('./'):
  136. ext_file = os.path.join(os.path.dirname(__file__), ext)
  137. init_file(ext_file)
  138. elif ext.startswith('http'):
  139. try:
  140. r = self.fetch(ext)
  141. self.config['filter'].update(r.json())
  142. except Exception as e:
  143. print(f'更新扩展筛选条件发生错误:{e}')
  144. elif not ext.startswith('./') and not ext.startswith('http'):
  145. ext_file = os.path.join(os.path.dirname(__file__), './' + ext + '.json')
  146. init_file(ext_file)
  147. # 装载模块,这里只要一个就够了
  148. if isinstance(extend, list):
  149. for lib in extend:
  150. if '.Spider' in str(type(lib)):
  151. self.module = lib
  152. break
  153. def isVideo(self):
  154. """
  155. 返回是否为视频的匹配字符串
  156. @return: None空 reg:正则表达式 js:input js代码
  157. """
  158. # return 'js:input.includes("https://zf.13to.com/")?true:false'
  159. return 'reg:zf\.13to\.com'
  160. def isVideoFormat(self, url):
  161. pass
  162. def manualVideoCheck(self):
  163. pass
  164. def homeContent(self, filterable=False):
  165. """
  166. 获取首页分类及筛选数据
  167. @param filterable: 能否筛选,跟t3/t4配置里的filterable参数一致
  168. @return:
  169. """
  170. class_name = '影片库&最新电影&热门下载&本月热门&国产剧&美剧&日韩剧' # 静态分类名称拼接
  171. class_url = 'movie_bt&new-movie&hot&hot-month&zgjun&meiju&jpsrtv' # 静态分类标识拼接
  172. result = {}
  173. classes = []
  174. if all([class_name, class_url]):
  175. class_names = class_name.split('&')
  176. class_urls = class_url.split('&')
  177. cnt = min(len(class_urls), len(class_names))
  178. for i in range(cnt):
  179. classes.append({
  180. 'type_name': class_names[i],
  181. 'type_id': class_urls[i]
  182. })
  183. result['class'] = classes
  184. if filterable:
  185. result['filters'] = self.config['filter']
  186. return result
  187. def homeVideoContent(self):
  188. """
  189. 首页推荐列表
  190. @return:
  191. """
  192. r = self.fetch(self.api)
  193. html = r.text
  194. html = self.html(html)
  195. d = []
  196. lis = html.xpath('//*[contains(@class,"leibox")]/ul/li')
  197. print(len(lis))
  198. for li in lis:
  199. d.append({
  200. 'vod_name': ''.join(li.xpath('h3//text()')),
  201. 'vod_id': ''.join(li.xpath('a/@href')),
  202. 'vod_pic': ''.join(li.xpath('.//img//@data-original')),
  203. 'vod_remarks': ''.join(li.xpath('.//*[contains(@class,"jidi")]//text()')),
  204. })
  205. result = {
  206. 'list': d
  207. }
  208. return result
  209. def categoryContent(self, tid, pg, filterable, extend):
  210. """
  211. 返回一级列表页数据
  212. @param tid: 分类id
  213. @param pg: 当前页数
  214. @param filterable: 能否筛选
  215. @param extend: 当前筛选数据
  216. @return:
  217. """
  218. page_count = 24 # 默认赋值一页列表24条数据
  219. if tid != 'movie_bt':
  220. url = self.api + f'/{tid}/page/{pg}'
  221. else:
  222. fls = extend.keys() # 哪些刷新数据
  223. url = self.api + f'/{tid}'
  224. if 'cat' in fls:
  225. url += extend['cat']
  226. if 'year' in fls:
  227. url += extend['year']
  228. if 'tags' in fls:
  229. url += extend['tags']
  230. url += f'/page/{pg}'
  231. print(url)
  232. r = self.fetch(url)
  233. html = r.text
  234. html = self.html(html)
  235. d = []
  236. lis = html.xpath('//*[contains(@class,"bt_img")]/ul/li')
  237. # print(len(lis))
  238. for li in lis:
  239. d.append({
  240. 'vod_name': ''.join(li.xpath('h3//text()')),
  241. 'vod_id': ''.join(li.xpath('a/@href')),
  242. 'vod_pic': ''.join(li.xpath('.//img//@data-original')),
  243. 'vod_remarks': ''.join(li.xpath('.//*[contains(@class,"hdinfo")]//text()')),
  244. })
  245. result = {
  246. 'list': d,
  247. 'page': pg,
  248. 'pagecount': 9999 if len(d) >= page_count else pg,
  249. 'limit': 90,
  250. 'total': 999999,
  251. }
  252. return result
  253. def detailContent(self, ids):
  254. """
  255. 返回二级详情页数据
  256. @param ids: 一级传过来的vod_id列表
  257. @return:
  258. """
  259. vod_id = ids[0]
  260. r = self.fetch(vod_id)
  261. html = r.text
  262. html = self.html(html)
  263. lis = html.xpath('//*[contains(@class,"dytext")]/ul/li')
  264. plis = html.xpath('//*[contains(@class,"paly_list_btn")]/a')
  265. vod = {"vod_id": vod_id,
  266. "vod_name": ''.join(html.xpath('//*[contains(@class,"dytext")]//h1//text()')),
  267. "vod_pic": ''.join(html.xpath('//*[contains(@class,"dyimg")]/img/@src')),
  268. "type_name": ''.join(lis[0].xpath('.//text()')) if len(lis) > 0 else '',
  269. "vod_year": ''.join(lis[2].xpath('.//text()')) if len(lis) > 2 else '',
  270. "vod_area": ''.join(lis[1].xpath('.//text()')) if len(lis) > 1 else '',
  271. "vod_remarks": ''.join(lis[4].xpath('.//text()')) if len(lis) > 4 else '',
  272. "vod_actor": ''.join(lis[7].xpath('.//text()')) if len(lis) > 7 else '',
  273. "vod_director": ''.join(lis[5].xpath('.//text()')) if len(lis) > 5 else '',
  274. "vod_content": ''.join(html.xpath('//*[contains(@class,"yp_context")]/p//text()')),
  275. "vod_play_from": '在线播放',
  276. "vod_play_url": '选集播放1$1.mp4#选集播放2$2.mp4$$$选集播放3$3.mp4#选集播放4$4.mp4'}
  277. vod_play_urls = []
  278. for pli in plis:
  279. vname = ''.join(pli.xpath('./text()'))
  280. vurl = ''.join(pli.xpath('./@href'))
  281. vod_play_urls.append(vname + '$' + vurl)
  282. vod['vod_play_url'] = '#'.join(vod_play_urls)
  283. result = {
  284. 'list': [vod]
  285. }
  286. return result
  287. def searchContent(self, wd, quick=False, pg=1):
  288. """
  289. 返回搜索列表
  290. @param wd: 搜索关键词
  291. @param quick: 是否来自快速搜索。t3/t4配置里启用了快速搜索,在快速搜索在执行才会是True
  292. @return:
  293. """
  294. headers = {
  295. "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.54 Safari/537.36",
  296. "Host": "www.bttwo.net",
  297. "Referer": self.api
  298. }
  299. url = f'{self.api}/xssearch?q={quote(wd)}'
  300. r = self.fetch(url, headers=headers)
  301. cookies = ['myannoun=1']
  302. for key, value in r.headers.items():
  303. if str(key).lower() == 'set-cookie':
  304. cookies.append(value.split(';')[0])
  305. new_headers = {
  306. 'Cookie': ';'.join(cookies),
  307. # 'Pragma': 'no-cache',
  308. # 'Origin': 'https://www.bttwo.net',
  309. # 'Referer': url,
  310. # 'Sec-Ch-Ua': '"Not_A Brand";v="8", "Chromium";v="120", "Google Chrome";v="120"',
  311. # 'Sec-Ch-Ua-Mobile': '?0',
  312. # 'Sec-Ch-Ua-Platform': '"Windows"',
  313. # 'Sec-Fetch-Dest': 'document',
  314. # 'Sec-Fetch-Mode': 'navigate',
  315. # 'Sec-Fetch-Site': 'same-origin',
  316. # 'Sec-Fetch-User': '?1',
  317. # 'Upgrade-Insecure-Requests': '1',
  318. }
  319. headers.update(new_headers)
  320. # print(headers)
  321. html = self.html(r.text)
  322. captcha = ''.join(html.xpath('//*[@class="erphp-search-captcha"]/form/text()')).strip()
  323. # print('验证码:', captcha)
  324. answer = self.eval_computer(captcha)
  325. # print('回答:', captcha, answer)
  326. data = {'result': str(answer)}
  327. # print('待post数据:', data)
  328. self.post(url, data=data, headers=headers, cookies=None)
  329. r = self.fetch(url, headers=headers)
  330. # print(r.text)
  331. html = self.html(r.text)
  332. lis = html.xpath('//*[contains(@class,"search_list")]/ul/li')
  333. print('搜索结果数:', len(lis))
  334. d = []
  335. if len(lis) < 1:
  336. d.append({
  337. 'vod_name': wd,
  338. 'vod_id': 'index.html',
  339. 'vod_pic': 'https://gitee.com/CherishRx/imagewarehouse/raw/master/image/13096725fe56ce9cf643a0e4cd0c159c.gif',
  340. 'vod_remarks': '测试搜索',
  341. })
  342. else:
  343. for li in lis:
  344. d.append({
  345. 'vod_name': ''.join(li.xpath('h3//text()')),
  346. 'vod_id': ''.join(li.xpath('a/@href')),
  347. 'vod_pic': ''.join(li.xpath('a/img/@data-original')),
  348. 'vod_remarks': ''.join(li.xpath('p//text()')),
  349. })
  350. result = {
  351. 'list': d
  352. }
  353. # print(result)
  354. return result
  355. def playerContent(self, flag, id, vipFlags):
  356. """
  357. 解析播放,返回json。壳子视情况播放直链或进行嗅探
  358. @param flag: vod_play_from 播放来源线路
  359. @param id: vod_play_url 播放的链接
  360. @param vipFlags: vip标识
  361. @return:
  362. """
  363. headers = {
  364. 'User-Agent': 'Mozilla/5.0 (Linux;; Android 11;; M2007J3SC Build/RKQ1.200826.002;; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.48 Mobile Safari/537.36',
  365. 'Referer': id,
  366. }
  367. return {
  368. 'parse': 1, # 1=嗅探,0=播放
  369. 'playUrl': '', # 解析链接
  370. 'url': id, # 直链或待嗅探地址
  371. 'header': headers, # 播放UA
  372. }
  373. r = self.fetch(id)
  374. html = r.text
  375. text = html.split('window.wp_nonce=')[1].split('eval')[0]
  376. # print(text)
  377. code = self.regStr(text, 'var .*?=.*?"(.*?)"')
  378. key = self.regStr(text, 'var .*?=md5.enc.Utf8.parse\\("(.*?)"')
  379. iv = self.regStr(text, 'var iv=.*?\\((\\d+)')
  380. text = self.aes_cbs_decode(code, key, iv)
  381. # print(code)
  382. # print(key,iv)
  383. # print(text)
  384. url = self.regStr(text, 'url: "(.*?)"')
  385. # print(url)
  386. parse = 0
  387. headers = {
  388. 'User-Agent': 'Mozilla/5.0 (Linux;; Android 11;; M2007J3SC Build/RKQ1.200826.002;; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.48 Mobile Safari/537.36',
  389. 'Referer': url,
  390. }
  391. result = {
  392. 'parse': parse, # 1=嗅探,0=播放
  393. 'playUrl': '', # 解析链接
  394. 'url': url, # 直链或待嗅探地址
  395. 'header': headers, # 播放UA
  396. }
  397. print(result)
  398. return result
  399. config = {
  400. "player": {},
  401. "filter": {}
  402. }
  403. header = {
  404. "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.54 Safari/537.36",
  405. "Host": "www.bttwo.net",
  406. "Referer": "https://www.bttwo.net/"
  407. }
  408. def localProxy(self, params):
  409. return [200, "video/MP2T", ""]
  410. # -----------------------------------------------自定义函数-----------------------------------------------
  411. def eval_computer(self, text):
  412. """
  413. 自定义的字符串安全计算器
  414. @param text:字符串的加减乘除
  415. @return:计算后得到的值
  416. """
  417. localdict = {}
  418. self.safe_eval(f'ret={text.replace("=", "")}', localdict)
  419. ret = localdict.get('ret') or None
  420. return ret
  421. def safe_eval(self, code: str = '', localdict: dict = None):
  422. code = code.strip()
  423. if not code:
  424. return {}
  425. if localdict is None:
  426. localdict = {}
  427. builtins = __builtins__
  428. if not isinstance(builtins, dict):
  429. builtins = builtins.__dict__.copy()
  430. else:
  431. builtins = builtins.copy()
  432. for key in ['__import__', 'eval', 'exec', 'globals', 'dir', 'copyright', 'open', 'quit']:
  433. del builtins[key] # 删除不安全的关键字
  434. # print(builtins)
  435. global_dict = {'__builtins__': builtins,
  436. 'json': json, 'print': print,
  437. 're': re, 'time': time, 'base64': base64
  438. } # 禁用内置函数,不允许导入包
  439. try:
  440. self.check_unsafe_attributes(code)
  441. exec(code, global_dict, localdict)
  442. return localdict
  443. except Exception as e:
  444. return {'error': f'执行报错:{e}'}
  445. # ==================== 静态函数 ======================
  446. @staticmethod
  447. def aes_cbs_decode(ciphertext, key, iv):
  448. # 将密文转换成byte数组
  449. ciphertext = base64.b64decode(ciphertext)
  450. # 构建AES解密器
  451. decrypter = AES.new(key.encode(), AES.MODE_CBC, iv.encode())
  452. # 解密
  453. plaintext = decrypter.decrypt(ciphertext)
  454. # 去除填充
  455. plaintext = unpad(plaintext, AES.block_size)
  456. # 输出明文
  457. # print(plaintext.decode('utf-8'))
  458. return plaintext.decode('utf-8')
  459. @staticmethod
  460. def check_unsafe_attributes(string):
  461. """
  462. 安全检测需要exec执行的python代码
  463. :param string:
  464. :return:
  465. """
  466. g = tokenize.tokenize(io.BytesIO(string.encode('utf-8')).readline)
  467. pre_op = ''
  468. for toktype, tokval, _, _, _ in g:
  469. if toktype == tokenize.NAME and pre_op == '.' and tokval.startswith('_'):
  470. attr = tokval
  471. msg = "access to attribute '{0}' is unsafe.".format(attr)
  472. raise AttributeError(msg)
  473. elif toktype == tokenize.OP:
  474. pre_op = tokval
  475. if __name__ == '__main__':
  476. from t4.core.loader import t4_spider_init
  477. spider = Spider()
  478. t4_spider_init(spider)
  479. spider.init_api_ext_file() # 生成筛选对应的json文件
  480. # print(spider.homeVideoContent())
  481. # print(spider.categoryContent('movie_bt', 1, True, {}))
  482. # print(spider.searchContent('斗罗大陆'))
  483. # print(spider.detailContent(['https://www.bttwo.net/movie/20107.html']))
  484. # print(spider.playerContent('在线播放', spider.decodeStr('https%3A%2F%2Fwww.bttwo.net%2Fv_play%2FbXZfMzY4Nzgtbm1fMQ%3D%3D.html','utf-8'), None))
  485. # print(spider.playerContent('在线播放', spider.decodeStr('https://www.bttwo.net/v_play/bXZfMTMyNjkwLW5tXzE=.html','utf-8'), None))
  486. # print(spider.playerContent('在线播放', 'https://www.bttwo.net/v_play/bXZfMTMyNjA2LW5tXzE=.html', None))
  487. # ciphertext = '+T77kORPkp6wtgdzcqQgPmUXomqshgO6IfTIGE8/40Iht0nDYW9pcGGUk/1157KS876b7FW1m6JMjPY2G+pwtscUjTcCq2G2NTnAX+1iMIexjK+nfTobgi2qYMtke/sWWe51RH/9IxqvoosAhH4dlN+QT/TIHKFFa6OyFiFp2hlUvPNpukbtZcHHshHMolQc9JmW3av+Js9AcyKDLuoFg9N38jrBidnUadw/9Pog/lsoRXUp7JFhdiVujAIkxTJjabvQXT2jGQS88MY7/kiem5SikAh/D+zVPnwO3E7z87o3GIC4agtWKbjTCfeRsUCGg20fEiEl79YoJAaBofZ67cHYNvjcvu6DPSE1Nf29keNMoZlSCLvJPOzSv1+nBi4aVz4s5M2puSDczFyFPPE6aW4Zpr1tVRstr/RuMPLZoDu2D/p6Znxrvwcgj8N6g997Y8P6jNGhdSdmLaFQNgjJT/4cBV1X8W3UzohaapewK3Zum6lmyzcNRlXHHdoCyM4WNYoEOTjln0oKexGIXEBoGijjTzVpng9eGAjMyjYoPKAC0ZCAPTMv94UlLRruUbEtCxlMN0AYzNB2mC/otT6bu/063/ECzCvBS7LjJuamYX+2zsSomIUMiNzfx4S4/ZY9M8tGdVclNKKCzCQ+ovWUPMvEtKDW+g/qUdfx8a/cXMYkEeR66D5ChMGlEVwayytjjJDn4a0/4SxpcOkNVwRMFfhyuFNAPyS65m7ieJe+r5QuwlMa67DwQdBRkw4t2bmt3CXU+qPvfeCchNcVKjHPAwWaHbI3NGN+/4sZ5aa9aLV/r0jIwL8ThWHwbbvox/VCfCLtrtNX1JW7VPnqHudvuqDb2VE5nYPU96VdNGUoGSNUJraXPQ2J1YG0x6DKOznfPiwrK6pD0emY3mtCQcN1UB62q0nTvavI3GBpFKd5y9w4idS+pjHBpdedL4lFc9ynq9oYNgd4xuGNj35a+SgZfdR7DqiaxIU9kDA1yW5nzOw05ui0h8TbPWJX9YypLm/CZu5AQxkS92gbzxXYGwjBrEqqgrAoWFxAUb1FsU5WZZl4+soOYbbKUwSe4zXj+agwpSQs6XuV+b4OKB9GOLYlxSxrLMPnGGBObl8qHmren1Drdw3UtF55MEgV402fvj/ClPCeWIlgUaZdD2c802qd8cc9lzTEwyuLUVvtfrMGCxJV1tbe0w4i+WFVaxXX/cIfzQ7QNxUHfYNDW/zp80f5jaL9zbbPo3aKUroWrhlsM7ecT1M78PG4orVC3stAoNRo3mURlHQepkjVvaiufvxb2Zf/ofao9ou1vlHN0+CFyM8vCRLnH1zY3E3gyCGHMJCPAiRyZGOMIsECw5w/+K+FkcLWBTz9CnYCcIsyIaQGUyoMecYE+RZSbYYoC5xhI18xzZZZ1UJCjnKJRhdAumb5y3aAnOOX5Hj2KL6CD3PmPbSzE08ihcwxaRbME+2/zIxErr1j0MJmSvHBi9L1KCfGhizwFtJmu0MG0laGskYJflJUsIJE9BmuG7GCvCl4CKHYueKgpGn0ogd5QVDg5F/R3/tinEcw4n1Re0qlhKKyKhg8rCnOigAZCgET68/EOSMLxTlP4wY3Jtts12Zc5bL1MB6HkANlbwGryiiej4I8HmoH13AaS65cWmfZw9bJ4PffJYdhyns0qScbzGxQBiwJHZn7/mO6Yc7c0bfrevUeM4HogAHZTZYd7QIeH5ehmEUnPHv11GXtVJcN4sHhaaxDA4RVV5aN+4vRA3OgUhbuqebYcB5rVuMx7t3fw5kwQzQP7lnkPcXjjCLrLueCYyWJgUAKHi5TrAS9YtgHaIOA1lH0dIKAq+V8SoZPBxjxPr7AywT0d8qZc321NCbavu4voMZfh5ylrAuP7hYe1n9qGCFwZ/mQUoYLhPW0T6t3zmLEJgI9S0vm8SE0Z7BHam8O1P4xD9gFk/O1AumNs9rxFQT+exE+pZKJPKDXAgfEG11oUuB8sW/cgEwRZeLy3J543uWVS/LWY08SbVovKVWaTzm8JVGlwz2puLt5amzTLKUc'
  488. # key = 'ae05c73de8a193cf'
  489. # iv = '1234567890983456'
  490. # print(spider.aes_cbs_decode(ciphertext, key, iv))