翻页option获取不到value
#3328
-
翻页规则
日志
书源[
{
"bookSourceComment": "",
"bookSourceGroup": "御宅屋",
"bookSourceName": "御宅屋(m.yuzhaiwu.vip)",
"bookSourceType": 0,
"bookSourceUrl": "https://m.yuzhaiwu.vip/",
"bookUrlPattern": "https://m.yuzhaiwu.vip/yu/\\d+/",
"customOrder": 0,
"enabled": true,
"enabledCookieJar": false,
"enabledExplore": true,
"exploreUrl": "",
"header": "{ \"User-Agent\": \"Mozilla/5.0 (Linux; Android 9) Mobile Safari/537.36\"}",
"lastUpdateTime": 1685522594904,
"respondTime": 180000,
"ruleBookInfo": {
"author": "@css:.article_info_td h2@text",
"intro": "@css:#novelMain pre@text",
"kind": "@css:.article_info_td a[title=\"BL\"]@text",
"lastChapter": "//td[@class=\"article_info_td\"][1]/div[3]/a/text()",
"name": "@css:.h_nav_items li:nth-of-type(2)@text",
"tocUrl": "@css:.chapterList a[style=\"color:red;\"]@href",
"wordCount": "//td[@class=\"article_info_td\"][2]/div[2]/text()##字数:"
},
"ruleContent": {
"content": "",
"nextContentUrl": "",
"title": ""
},
"ruleExplore": {
"author": "",
"bookList": "",
"bookUrl": "",
"intro": "",
"kind": "",
"name": ""
},
"ruleSearch": {
"author": "//p[1]/strong/text()",
"bookList": "//*[@class=\"common-bookele\"]",
"bookUrl": "@css:h3>a@href",
"intro": "@css:.abstract>a@text",
"kind": "",
"name": "//h3/a/text()"
},
"ruleToc": {
"chapterList": "@css:ul a",
"chapterName": "text",
"chapterUrl": "href",
"nextTocUrl": "@XPath://select/option[not(@selected)]@value"
},
"searchUrl": "/search/,{\n \"body\": \"searchkey={{key}}\",\n \"method\": \"POST\"\n}",
"weight": 0
}
] |
Beta Was this translation helpful? Give feedback.
Answered by
821938089
Sep 7, 2023
Replies: 1 comment
-
xpath语法错误,尽量选一个你熟悉的元素选择方式来用,一般css都够用了 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
violetice
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xpath语法错误,尽量选一个你熟悉的元素选择方式来用,一般css都够用了
@XPath://select/option[not(@selected)]/@value