From 21bf1044579be9ade02d4465e29d23fdca241d0d Mon Sep 17 00:00:00 2001 From: kanasimi Date: Sat, 6 Apr 2024 05:04:14 +0800 Subject: [PATCH] =?UTF-8?q?2024/3/13=E5=89=8D=E6=94=B9:=20https://www.69sh?= =?UTF-8?q?u.pro/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- novel.cmn-Hans-CN/69shu.js | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/novel.cmn-Hans-CN/69shu.js b/novel.cmn-Hans-CN/69shu.js index c096306a..b5109d4b 100644 --- a/novel.cmn-Hans-CN/69shu.js +++ b/novel.cmn-Hans-CN/69shu.js @@ -29,14 +29,20 @@ var crawler = new CeL.work_crawler({ // 2018/2/4前: https://www.69shu.com/ // 2023/8/18前改: https://www.69shuba.com/ - base_URL : 'https://www.69shuba.com/', + // 2024/1/29前改: https://www.69xinshu.com/ + // 2024/3/13前改: https://www.69shu.pro/ + base_URL : 'https://www.69shu.pro/', charset : 'gbk', // 解析 作品名稱 → 作品id get_work() search_URL : function(work_title) { return [ 'modules/article/search.php', { - searchtype : 'all', - searchkey : work_title + // 2023/8/18 + // searchtype : 'all', + + searchkey : work_title, + // 2024/1/29 + + submit : 'Search' } ]; }, parse_search_result : function(html, get_label) { @@ -48,12 +54,20 @@ var crawler = new CeL.work_crawler({ function parse_section(text) { var matched = text.match( /** - * + * 2023/8/18
  • ...

    娶妻长生

    +
    + * + * 2024/1/29 +
  • + + ... + +

    我为长生仙

    */ /]*?href="[^"]+?\/(\d+)\.htm">([\s\S]+?)<\/a>/); @@ -75,9 +89,12 @@ var crawler = new CeL.work_crawler({
  • */ - html.between('
    ').between('') - // - .each_between('
  • ', '
  • ', function(text) { + html = html.between('
    ').between(''); + html = html.between('
      ') || html; + // console.trace(html); + html.each_between('
    • ', null, function(text) { + // console.trace(text); parse_section(text.between('

      ', '

      ')); }); }