格格党
https://www.alshuan.com
lindongjiang (1001)2小时前
暂无介绍说明
网络导入
{
"chapterContent": {
"validConfig": "",
"content": "//article[@id='article']//p//text()",
"actionID": "chapterContent",
"host": "https://www.alshuan.com",
"responseFormatType": "html",
"parserID": "DOM",
"nextPageUrl": "//a[@id='next_url']/@href"
},
"enable": true,
"shupingList": {
"actionID": "shupingList",
"parserID": "DOM"
},
"bookDetail": {
"actionID": "bookDetail",
"parserID": "DOM",
"responseFormatType": "html"
},
"shudanList": {},
"bookWorld": {
"分类": {
"cat": "//div[@class='img_span']/a/span/text()",
"author": "//div[@class='w100']/div[@class='li_bottom']/a/i/text()",
"responseFormatType": "html",
"lastChapterTitle": "//div[@class='w100']/div[@class='li_bottom']/div/em[@class='blue']/text()",
"bookName": "//div[@class='w100']/a/h2/text()",
"desc": "//div[@class='w100']/p[@class='indent']/text()",
"requestInfo": "@js:\n// 1. 参数初始化\nlet hp = {};\nhp.key = params.keyWord || '';\nhp.p = params.pageIndex || 1;\n\n// 2. 分类映射表\nlet categoryMap = {\n 'xuanhuan': '1', // 玄幻\n 'wuxia': '2', // 武侠\n 'dushi': '3', // 都市\n 'lishi': '4', // 历史\n 'kehuan': '5', // 科幻\n 'youxi': '6', // 游戏\n 'nvsheng': '7', // 女生\n 'qita': '8' // 其他\n};\n\n// 3. 参数获取和处理\nlet category = 'xuanhuan'; // 默认分类\n\n// 获取分类参数\nif(params.filters && params.filters.category && params.filters.category !== '0') {\n category = params.filters.category;\n}\n\n// 4. URL构建\nlet baseUrl = config.host;\nlet categoryId = categoryMap[category] || '1';\nlet pageIndex = params.pageIndex || 1;\n\nlet url = `${baseUrl}/sort/${categoryId}/${pageIndex}/`;\n\n// 5. 请求头设置\nlet hh = {\n 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',\n 'Referer': baseUrl + '/',\n 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',\n 'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8'\n};\n\n// 6. 返回配置\nreturn {\n 'url': url,\n 'httpParams': hp,\n 'httpHeaders': hh\n};",
"host": "https://www.alshuan.com",
"actionID": "bookWorld",
"moreKeys": {
"maxPage": "50",
"removeHtmlKeys": [
"bookName",
"author",
"desc"
],
"pageSize": "20",
"requestFilters": [
{
"key": "category",
"items": [
{
"title": "全部分类",
"value": "0"
},
{
"title": "玄幻魔法",
"value": "xuanhuan"
},
{
"title": "武侠修真",
"value": "wuxia"
},
{
"title": "都市言情",
"value": "dushi"
},
{
"title": "历史军事",
"value": "lishi"
},
{
"title": "科幻灵异",
"value": "kehuan"
},
{
"title": "游戏竞技",
"value": "youxi"
},
{
"title": "女生频道",
"value": "nvsheng"
},
{
"title": "其他类型",
"value": "qita"
}
]
}
]
},
"detailUrl": "//div[@class='w100']/a/@href",
"validConfig": "",
"list": "//ul[@class='flex']/li",
"_sIndex": 0,
"parserID": "DOM",
"cover": "//img/@data-original",
"wordCount": "//div[@class='w100']/div[@class='li_bottom']/div/em[@class='orange']/text()"
}
},
"sourceUrl": "https://www.alshuan.com",
"relatedWord": {
"actionID": "relatedWord",
"parserID": "DOM"
},
"weight": 9999,
"sourceName": "格格党",
"desc": "公众号:好用的软件站",
"miniAppVersion": "2.53.2",
"shudanDetail": {
"actionID": "shudanDetail",
"parserID": "DOM"
},
"lastModifyTime": "1772598688",
"shupingHome": {
"actionID": "shupingHome",
"parserID": "DOM"
},
"searchShudan": {
"actionID": "searchShudan",
"parserID": "DOM"
},
"searchBook": {
"cat": "//div[@class='img_span']/a/span/text()",
"author": "//p[1]/text()[1]",
"responseFormatType": "html",
"bookName": "//h3/text()",
"requestInfo": "@js:\n// 构建搜索参数\nlet hp = {\n 'searchkey': params.keyWord,\n 'searchtype': 'all'\n};\n\n// 构建请求URL\nlet url = config.host + '/search/';\n\n// 设置请求头\nlet hh = {\n 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',\n 'Referer': config.host,\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\n// 返回请求配置\nreturn {\n 'url': url,\n 'POST': true,\n 'httpParams': hp,\n 'httpHeaders': hh\n};",
"host": "https://www.alshuan.com",
"actionID": "searchBook",
"detailUrl": "//a[./h3]/@href",
"cover": "//img/@data-original",
"validConfig": "",
"list": "//ul[@class='flex']/li[@class='searchresult']",
"parserID": "DOM"
},
"chapterList": {
"validConfig": "",
"actionID": "chapterList",
"title": "//@title",
"host": "https://www.alshuan.com",
"list": "//div[@id='catalog']//ul[@id='ul_all_chapters']/li/a",
"responseFormatType": "html",
"parserID": "DOM",
"url": "//@href"
},
"sourceType": "text"
}