{
  "schema": "trnovel-booksource/v2",
  "name": "笔趣阁(bqgui)",
  "group": "笔趣阁",
  "url": "https://www.bqgui.cc",
  "http": {
    "headers": {
      "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0 Safari/537.36",
      "Referer": "https://www.bqgui.cc/"
    },
    "warmup": ["https://www.bqgui.cc/"],
    "charset": "auto",
    "timeout": 20000,
    "retry": { "max": 2, "backoffMs": 500 }
  },
  "explore": {
    "categories": [
      { "title": "玄幻", "url": { "template": "{{base}}/xuanhuan/" } },
      { "title": "武侠", "url": { "template": "{{base}}/wuxia/" } },
      { "title": "都市", "url": { "template": "{{base}}/dushi/" } },
      { "title": "历史", "url": { "template": "{{base}}/lishi/" } },
      { "title": "网游", "url": { "template": "{{base}}/wangyou/" } },
      { "title": "科幻", "url": { "template": "{{base}}/kehuan/" } },
      { "title": "女生", "url": { "template": "{{base}}/mm/" } },
      { "title": "完本", "url": { "template": "{{base}}/finish/" } }
    ],
    "list": { "via": "css", "select": ".wrap.class .item" },
    "item": {
      "bookUrl": { "via": "css", "select": ".image a", "extract": { "attr": "href" } },
      "name": { "via": "css", "select": "dl dt a", "extract": "text" },
      "author": { "via": "css", "select": "dl dt span", "extract": "text" },
      "cover": { "via": "css", "select": ".image img", "extract": { "attr": "src" } },
      "intro": {
        "via": "css",
        "select": "dl dd",
        "extract": "text",
        "clean": [{ "regex": "^简介：", "replace": "" }, { "trim": true }]
      }
    }
  },
  "bookInfo": {
    "name": {
      "via": "css",
      "select": "[property=\"og:novel:book_name\"]",
      "extract": { "attr": "content" }
    },
    "author": {
      "via": "css",
      "select": "[property=\"og:novel:author\"]",
      "extract": { "attr": "content" }
    },
    "cover": {
      "via": "css",
      "select": "[property=\"og:image\"]",
      "extract": { "attr": "content" }
    },
    "intro": {
      "via": "css",
      "select": "[property=\"og:description\"]",
      "extract": "text",
      "clean": [{ "regex": "\\d+w?\\d*-\\d+\\s*$", "replace": "" }, { "trim": true }]
    },
    "kind": {
      "concat": [
        {
          "via": "css",
          "select": "[property=\"og:novel:category\"]",
          "extract": { "attr": "content" }
        },
        {
          "via": "css",
          "select": "[property=\"og:novel:status\"]",
          "extract": { "attr": "content" }
        }
      ],
      "join": " · "
    },
    "lastChapter": {
      "via": "css",
      "select": "[property=\"og:novel:latest_chapter_name\"]",
      "extract": { "attr": "content" }
    },
    "tocUrl": {
      "via": "css",
      "select": "[property=\"og:novel:read_url\"]",
      "extract": { "attr": "content" }
    }
  },
  "toc": {
    "list": { "via": "css", "select": ".listmain dl dd a[href^=\"/book/\"]" },
    "name": { "via": "css", "select": "a", "extract": "text" },
    "url": { "via": "css", "select": "a", "extract": { "attr": "href" } },
    "maxPages": 1
  },
  "content": {
    "value": {
      "firstOf": [
        { "via": "css", "select": "#content", "extract": "html" },
        { "via": "css", "select": "#chaptercontent", "extract": "html" },
        { "via": "css", "select": ".content", "extract": "html" },
        { "via": "css", "select": "#read", "extract": "html" }
      ],
      "clean": [{ "trim": true }]
    },
    "maxPages": 1
  },
  "samples": [
    {
      "bookUrl": "/book/3315/",
      "expect": {
        "name": "斗罗大陆V重生唐三",
        "minChapters": 1000,
        "minContentChars": 200
      }
    }
  ]
}
