diff --git a/js/version.txt b/js/version.txt index ca7871dd8eb05fb8c8bcd6259d53e5582ff47dab..931d7fde5d4edc9683112353419e4a0cb651455e 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.9.31beta3 \ No newline at end of file +3.9.31beta4 \ No newline at end of file diff --git "a/js/\344\271\235\351\205\267.js" "b/js/\344\271\235\351\205\267.js" new file mode 100644 index 0000000000000000000000000000000000000000..c77ff217f215dfb26edea61d203a5b65be4ce57e --- /dev/null +++ "b/js/\344\271\235\351\205\267.js" @@ -0,0 +1,13 @@ +var rule = { + title: '九酷', + host: 'https://jiuku.site', + homeUrl: '', + searchUrl: '', + searchable: 1, + quickSearch: 1, + filterable: 1, + headers:{'User-Agent':'MOBILE_UA','Cookie':'ecPopup=1'}, + // 分类链接fypage参数支持1个()表达式 + url: '/index.php/api/vod#type=fyclass&page=fypage&time=1670922043&key=8b217b963c185115ad035883ef449788', + 一级:'' +} \ No newline at end of file diff --git "a/js/\345\260\217\347\214\253\345\222\252.js" "b/js/\345\260\217\347\214\253\345\222\252.js" index b204edd20580f326ca7242b5979f663592284f3d..c64697cada19b4e57301be69c10c7ec2c605ef7a 100644 --- "a/js/\345\260\217\347\214\253\345\222\252.js" +++ "b/js/\345\260\217\347\214\253\345\222\252.js" @@ -1,5 +1,9 @@ -muban.海螺3.二级.content = '.hl-infos-content&&Text'; -var rule = Object.assign(muban.海螺3,{ +muban.海螺3.二级.desc = ';;;.hl-full-box .hl-col-xs-12:eq(3)&&Text;.hl-full-box .hl-col-xs-12:eq(4)&&Text'; +muban.海螺3.二级.content = '.hl-col-xs-12.blurb&&Text'; +var rule = { title:'小猫咪', - host:'https://xmaomi.net', -}); \ No newline at end of file + 模板:'海螺3', + // host:'https://xmaomi.net', + host:'https://xmaomi.top', + url: '/vod___________show/fyclass--------fypage---.html', +} \ No newline at end of file diff --git "a/js/\346\234\211\345\243\260\345\260\217\350\257\264\345\220\247.js" "b/js/\346\234\211\345\243\260\345\260\217\350\257\264\345\220\247.js" index 192a49db65e405a7657c3d3039b41f562e18e6df..7e17e60cedde708abbe157c03ad30f96a5113277 100644 --- "a/js/\346\234\211\345\243\260\345\260\217\350\257\264\345\220\247.js" +++ "b/js/\346\234\211\345\243\260\345\260\217\350\257\264\345\220\247.js" @@ -10,21 +10,26 @@ var rule = { 'User-Agent':'MOBILE_UA' }, timeout:5000, + // homeUrl:'/fenlei/', + // class_parse: '.pd-class:eq(0) dd;a&&Text;a&&href;.*/(.*?).html', class_name:'网络玄幻&恐怖悬疑&传统武侠&都市言情&官场刑侦&历史军事&探险盗墓&职场商战&明朝那些事儿&评书下载&相声戏曲&人物传记&广播剧&百家讲坛&外语读物&有声文学&儿童读物&管理营销', class_url:'r52&r17&r12&r13&r14&r15&r45&r81&r36&r3&r7&r16&r18&r32&r35&r41&r4&r6', play_parse:true, lazy:'', limit:6, - double:true, - 推荐:'.list-ul;a;.list-name&&Text;img&&data-original;.module-slide-author&&Text;a&&href', - 一级:'.book-ol&&li;h4&&Text;img&&data-original;.book-submeta&&Text;a&&href', - 二级:{title:'h2&&Text',img:'.bookimg&&img&&data-original',desc:'.book-rand-a:eq(0)&&Text;.book-rand-a:eq(1)&&Text;.book-rand-a:eq(2)&&Text;.book-rand-a:eq(3)&&Text',content:'.book_intro&&Text', - tabs:'.list-contitle&&h3', - lists:'', - lists:'js:pd=jsp.pd;let url=pd(html,".bookbutton&&a&&href");log(url);html=request(url);let v=pd(html,".booksite&&script&&Html");var document={};var VideoListJson;VideoListJson=eval(v.split("VideoListJson=")[1].split(",urlinfo")[0]);log(typeof VideoListJson);let list1=VideoListJson[0][1];LISTS=[list1];log(LISTS);', - // 有声小说有防盗链,我服了(上面的列表数据正常拿到了,没法播放) - // lists:'#playlist:eq(#id)&&ul&&li', - lists:'#playlist ul li', + // double:true, + 推荐:'.list-ul .list-li;.list-name&&Text;*;.module-slide-author&&Text;*', + 一级:'.book-ol&&li;h4&&Text;img&&data-original;.book-meta&&Text;a&&href', + 二级:{ + title:'h2&&Text;.book-cell .book-rand-a:eq(2)&&Text', + img:'.book img&&src', + desc:';;;;.book-des p&&Text', + content:'.book-des&&Text', + tabs:'.playlist-top&&h2', + // lists:'js:pd=jsp.pd;let url=pd(html,".bookbutton&&a&&href");log(url);html=request(url);let v=pd(html,".booksite&&script&&Html");var document={};var VideoListJson;VideoListJson=eval(v.split("VideoListJson=")[1].split(",urlinfo")[0]);log(typeof VideoListJson);let list1=VideoListJson[0][1];LISTS=[list1];log(LISTS);', + // 有声小说有防盗链,我服了(上面的列表数据正常拿到了,没法播放) + // lists:'#playlist:eq(#id)&&ul&&li', + lists:'#playlist ul li', }, 搜索:'*', } \ No newline at end of file diff --git "a/js/\346\265\267\345\244\226\347\234\213\345\275\261\351\231\242.js" "b/js/\346\265\267\345\244\226\347\234\213\345\275\261\351\231\242.js" index c9261b0f09c216c5753e7bc5a69eabc54f54cee9..8d40da0efad239cfc5e6975cc4d35be414cc19a7 100644 --- "a/js/\346\265\267\345\244\226\347\234\213\345\275\261\351\231\242.js" +++ "b/js/\346\265\267\345\244\226\347\234\213\345\275\261\351\231\242.js" @@ -1,6 +1,10 @@ +muban.mxone5.二级.title = 'h1&&Text;.video-info-aux&&Text'; +muban.mxone5.二级.desc = ';;;.video-info-actor:eq(1)&&Text;.video-info-actor:eq(0)&&Text'; var rule = { title: '海外看影院', - host: 'https://haiwaiys.cc', + 模板:'mxone5', + // host: 'https://haiwaiys.cc', + host: 'https://www.huale.org', // url: '/vodshow/fyclass--------fypage---.html', url: '/vodshow/fyfilter.html', filterable:1,//是否启用分类筛选, @@ -13,23 +17,7 @@ var rule = { 4:{cateId:'4'}, 21:{cateId:'21'} }, - searchUrl: '/vodsearch/**----------fypage---.html', - searchable: 2, - quickSearch: 0, - headers: {'User-Agent': 'UC_UA',}, - class_name:'电影&电视剧&综艺&动漫&记录片', - class_url:'1&2&3&4&21', - // 推荐:'.module-items&&.module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href', - 推荐:'.module-items&&.module-item;*;*;*;*', - 一级:'.module-items .module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href', - 二级: { - "title": "h1&&Text;.tag-link&&Text", - "img": ".module-item-pic&&img&&data-src", - "desc": ".video-info-items:eq(0)&&Text;.video-info-items:eq(1)&&Text;.video-info-items:eq(2)&&Text;.video-info-actor:eq(1)&&Text;.video-info-actor:eq(0)&&Text", - "content": ".vod_content&&Text", - "tabs": ".module-tab-item", - "lists": ".module-player-list:eq(#id)&&.scroll-content&&a" - }, - // 搜索: '.module-items .module-search-item;a&&title;img&&data-src;.video-serial&&Text;a&&href', - 搜索: '.module-items .module-search-item;*;*;.video-serial&&Text;*', + searchUrl:'/index.php/ajax/suggest?mid=1&wd=**', + detailUrl:'/voddetail/fyid.html', //非必填,二级详情拼接链接 + 搜索:'json:list;name;pic;;id', } \ No newline at end of file diff --git "a/js/\350\216\253\346\211\216\345\205\224.js" "b/js/\350\216\253\346\211\216\345\205\224.js" index ec09afb90150df13cde64594ac25956977fa76e1..beb3f98de51b7c148133c0afaf9caa81eaeea0e8 100644 --- "a/js/\350\216\253\346\211\216\345\205\224.js" +++ "b/js/\350\216\253\346\211\216\345\205\224.js" @@ -1,7 +1,10 @@ -var rule = Object.assign(muban.mxpro,{ -title:'莫扎兔', -host:'https://www.mozhatu.com', -url:'/index.php/vod/show/id/fyclass/page/fypage.html', -searchUrl:'/index.php/vod/search/page/fypage/wd/**.html', -class_parse:'.navbar-items li:gt(2):lt(8);a&&Text;a&&href;.*/(.*?).html', -}); \ No newline at end of file +muban.mxpro.二级.desc = ';;;.module-info-item-content:eq(1)&&Text;.module-info-item-content:eq(0)&&Text'; +muban.mxpro.二级.tabs = '#y-playList .module-tab-item'; +var rule = { + title:'莫扎兔', + 模板:'mxpro', + host:'https://www.mozhatu.com', + url:'/index.php/vod/show/id/fyclass/page/fypage.html', + searchUrl:'/index.php/vod/search/page/fypage/wd/**.html', + class_parse:'.navbar-items li:gt(2):lt(8);a&&Text;a&&href;.*/(.*?).html', +} \ No newline at end of file diff --git "a/py/\344\271\235\351\205\267.py" "b/py/\344\271\235\351\205\267.py" new file mode 100644 index 0000000000000000000000000000000000000000..fcd26478c485dc79b4b389153d8964cd012bb9a7 --- /dev/null +++ "b/py/\344\271\235\351\205\267.py" @@ -0,0 +1,32 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# File : 九酷.py +# Author: DaShenHan&道长-----先苦后甜,任凭晚风拂柳颜------ +# Date : 2022/12/14 + +import requests +import time +import ujson + +headers = { + 'x-requested-with':'XMLHttpRequest', + 'user-agent':'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', + 'Cookie':'ecPopup=1;crisp-client%2Fsession%2Fba128124-8ac1-44d1-8420-98420b4da478=session_8d89f90c-4b46-4895-86d8-03a74770b741' +} +s = requests.session() +s.get('https://jiuku.site/index.php/vod/type/id/1.html') +print(s.cookies) + +fyclass = 1 +fypage = 1 +tm = int(time.time()) +tm = '' +print(tm) +data = f'type={fyclass}&page={fypage}&time={tm}1670981084&key=52871810a25aa2ac4675e3c4dfd321c6' +data_dict = {} +for dt in data.split('&'): + data_dict[dt.split('=')[0]] = dt.split('=')[1] +print(data_dict) +data_dict = ujson.dumps(data_dict) +r = s.post('https://jiuku.site/index.php/api/vod',data=data_dict,headers=headers) +print(r.text) \ No newline at end of file diff --git "a/py/\344\271\235\351\205\267\344\270\200\347\272\247.js" "b/py/\344\271\235\351\205\267\344\270\200\347\272\247.js" new file mode 100644 index 0000000000000000000000000000000000000000..c1e59dfa45155a5b7721eddb9f0a5ce4c6b17f4a --- /dev/null +++ "b/py/\344\271\235\351\205\267\344\270\200\347\272\247.js" @@ -0,0 +1,10 @@ +js: +let body = input.split('#')[1]; +let url = input.split('#')[0]; +fetch_params.body = body; +fetch_params.headers['x-requested-with'] = 'XMLHttpRequest'; +// fetch_params.headers['cookie'] = 'PHPSESSID=e7ht5hvema4sg0o8l1o5k0bqt1; Hm_lvt_eebb854b7348edadfb6b433786f5d059=1666239708; Hm_lpvt_eebb854b7348edadfb6b433786f5d059=1666244071'; +let url = input.split('?')[0]; +let html = post(url,fetch_params); +print(html); +let data = JSON.parse(html); \ No newline at end of file