Skip to content

Commit 7d385c8

Browse files
committed
更新爬虫文件
1 parent 6b6d8e6 commit 7d385c8

File tree

7 files changed

+659
-5
lines changed

7 files changed

+659
-5
lines changed

spider/js/DJ音乐[听].js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
@header({
3+
searchable: 2,
4+
filterable: 0,
5+
quickSearch: 0,
6+
title: 'DJ音乐',
7+
author: 'EylinSir',
8+
'类型': '影视',
9+
logo: 'https://pic.289.com/up/2023-12/20231219154340126.png',
10+
lang: 'ds'
11+
})
12+
*/
13+
14+
var rule = {
15+
title:'DJ音乐',
16+
host:'http://www.djuu.com',
17+
homeUrl:'/exclusive/115_1.html',
18+
url:'/djlist/fyclass_fypage.html',
19+
searchUrl:'/search?musicname=**',
20+
author: 'EylinSir',
21+
logo: 'https://pic.289.com/up/2023-12/20231219154340126.png',
22+
hikerListCol: 'icon_4',
23+
searchable:2,
24+
quickSearch:0,
25+
class_name: '迪高串烧&慢摇串烧&慢歌串烧&中文Remix&外文Remix&HOUSE&HOUSE&霓虹风格&Mashup&中文DISCO&外文DISCO',
26+
class_url: '1&2&3&4&5&6&7&8&9&10',
27+
headers:{
28+
'User-Agent':'PC_UA'
29+
},
30+
timeout:5000,
31+
limit:6,
32+
double:false,
33+
play_parse:true,
34+
lazy: async function() {
35+
let {input} = this;
36+
return input;
37+
},
38+
推荐:'*',
39+
一级:'.list_musiclist tr:gt(0);a&&title;img&&src;.cor999:eq(1)&&Text;a&&href',
40+
二级:'*',
41+
搜索:'*;*;*;.sc_1&&Text;*',
42+
}

spider/js/凤凰FM[听].js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,8 @@ var rule = {
108108
});
109109
return setResult(d);
110110
},
111-
lazy: async function () {
112-
return {
113-
parse: 0,
114-
url: input
115-
};
111+
lazy: async function() {
112+
let {input} = this;
113+
return input;
116114
},
117115
}

spider/js/博看听书[听].js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,18 @@ var rule = {
1717
url: '/voice/book/list?instance_id=25304&page=fypage&category_id=fyclass&num=24',
1818
detailUrl: '/voice/album/units?album_id=fyid&page=1&num=200&order=1',
1919
searchUrl: 'https://es.bookan.com.cn/api/v3/voice/book?instanceId=25304&keyword=**&pageNum=fypage&limitNum=20',
20+
author: 'EylinSir',
21+
logo: 'https://pp.myapp.com/ma_icon/0/icon_52647879_1746000007/256',
22+
hikerListCol: 'icon_4',
2023
searchable: 2,
2124
quickSearch: 0,
2225
class_name: '少年读物&儿童文学&国学经典&文艺少年&育儿心经&心理哲学&青春励志&历史小说&故事会&音乐戏剧&相声评书',
2326
class_url: '1305&1304&1320&1306&1309&1310&1307&1312&1303&1317&1319',
2427
headers: {'User-Agent': 'MOBILE_UA'},
28+
lazy: async function() {
29+
let {input} = this;
30+
return input;
31+
},
2532
推荐: '*',
2633
一级: 'json:data.list;name;cover;extra.author;id',
2734
二级: async function () {

spider/js/种子音乐[听].js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
@header({
3+
searchable: 2,
4+
filterable: 0,
5+
quickSearch: 0,
6+
title: '种子音乐[听]',
7+
'类型': '影视',
8+
lang: 'ds'
9+
})
10+
*/
11+
12+
var rule = {
13+
title: '种子音乐[听]',
14+
host: 'https://www.zz123.com',
15+
homeUrl: '/list/mszm.htm?page=1',
16+
url: '/fyclass.htm?page=fypage',
17+
searchUrl: '/ajax/?act=search&key=**&lang=',
18+
detailUrl: '/play/fyid.html',
19+
author: 'EylinSir',
20+
limit: 6,
21+
searchable: 2,
22+
quickSearch: 0,
23+
headers: {
24+
'User-Agent': 'MOBILE_UA',
25+
'referer': 'https://www.zz123.com/',
26+
},
27+
class_parse: '.aside-menu-list.channel&&[href*=list];a&&Text;a&&href;.(list.*).htm',
28+
play_parse: true,
29+
sniffer:1,
30+
isVideo:"http((?!http).){26,}\\.(m3u8|mp4|flv|avi|mkv|wmv|mpg|mpeg|mov|ts|3gp|rm|rmvb|asf|m4a|mp3|wma)",
31+
lazy: async function(flag, id) {
32+
let url = id.replace(/play\/(\w+)\.htm/, 'ajax/?act=songinfo&id=$1&lang=');
33+
let data = JSON.parse(await request(url, {
34+
headers: rule.headers
35+
}));
36+
let mp3 = data.data.mp3;
37+
return {parse: 0, url: mp3, header: rule.headers};
38+
},
39+
推荐: "*",
40+
一级: '.mobile-list&&.mobile-list-item;.songname&&Text;.lazyload&&data-src;.authorname&&Text;a&&href',
41+
二级: '*',
42+
搜索: 'json:data;mname;pic;sname;id',
43+
}

spider/js/蜻蜓FM[听].js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
@header({
3+
searchable: 0,
4+
filterable: 0,
5+
quickSearch: 0,
6+
title: '蜻蜓FM',
7+
'类型': '影视',
8+
lang: 'ds'
9+
})
10+
*/
11+
12+
var rule = {
13+
title:'蜻蜓FM',
14+
host:'http://www.qingting.fm',
15+
url:'/radiopage/fyclass/fypage',
16+
author: 'EylinSir',
17+
logo: 'https://sss.qtfm.cn/images/qingting_icon_new.png',
18+
hikerListCol: 'icon_4',
19+
searchUrl:'',
20+
searchable:0,
21+
quickSearch:0,
22+
class_name:'广东&浙江&北京&天津&河北&上海&山西&内蒙古&辽宁&吉林&黑龙江&江苏&安徽&福建&江西&山东&河南&湖北&湖南&广西&海南&重庆&四川&贵州&云南&陕西&甘肃&宁夏&新疆&西藏&青海&资讯&音乐&交通&经济&文艺&都市&体育&双语&综合&生活&旅游&曲艺&方言',
23+
class_url:'217&99&3&5&7&83&19&31&44&59&69&85&111&129&139&151&169&187&202&239&254&257&259&281&291&316&327&351&357&308&342&433&442&429&439&432&441&430&431&440&438&435&436&434',
24+
headers:{
25+
'User-Agent':'PC_UA'
26+
},
27+
timeout:5000,
28+
play_parse:true,
29+
play_json:0,
30+
lazy: async function(flag, id) {
31+
return id.replace("www.qingting.fm/radios/", "lhttp.qingting.fm/live/") + "/64k.mp3";
32+
},
33+
limit:6,
34+
double:false,
35+
//推荐:'*',
36+
一级:'.contentSec&&.radio;span&&Text;img&&src;.descRadio&&Text;a&&href',
37+
二级:'*',
38+
搜索:'',
39+
40+
//是否启用辅助嗅探: 1,0
41+
sniffer:1,
42+
// 辅助嗅探规则
43+
isVideo:"http((?!http).){26,}\\.(m3u8|mp4|flv|avi|mkv|wmv|mpg|mpeg|mov|ts|3gp|rm|rmvb|asf|m4a|mp3|wma)",
44+
}

0 commit comments

Comments
 (0)