海洋听书.js 1.3 KB

123456789101112131415161718192021222324252627282930
  1. var rule = {
  2. title:'海洋听书',
  3. 编码:'gb18030',
  4. host:'http://m.ychy.cc',
  5. homeUrl:'/best.html',
  6. url:'/list/fyclass_fypage.html',
  7. searchUrl:'/search.asp?page=fypage&searchword=**&searchtype=-1',
  8. searchable:2,
  9. quickSearch:0,
  10. headers:{
  11. 'User-Agent':'MOBILE_UA'
  12. },
  13. class_name:'网络玄幻&恐怖悬疑&评书下载&儿童读物&相声戏曲&传统武侠&都市言情&历史军事&人物传记&广播剧&百家讲坛&有声文学&探险盗墓&职场商战',
  14. class_url:'52&17&3&4&7&12&13&15&16&18&32&41&45&81',
  15. play_parse:true,
  16. lazy:'',
  17. limit:6,
  18. double:true,
  19. 推荐:'*',
  20. 一级:'.list-ul li;.tit&&Text;img&&src;p span:eq(0)&&Text;a&&href',
  21. 二级:{
  22. title:'h2&&Text;.info div:eq(4)&&Text',
  23. img:'.bookimg img&&src',
  24. desc:'.info div:eq(3)&&Text;;;.info div:eq(2)&&Text;.info div:eq(1)&&Text',
  25. content:'.book_intro&&Text',
  26. tabs:'.sub_tit',
  27. lists:'#playlist li',
  28. },
  29. 搜索:"js:let d=[];pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;log(input);let html=request(input);var list=pdfa(html,'.book_slist&&.bookbox');list.forEach(function(it){d.push({title:pdfh(it,'h4&&Text'),desc:pdfh(it,'.update&&Text'),pic_url:pd(it,'img&&orgsrc'),url:'http://m.ychy.com/book/'+pdfh(it,'.bookbox&&bookid')+'.html'})});setResult(d);",
  30. }