Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大佬,有交流群互助群么。。。。 #204

Open
XXX-BOX opened this issue Jan 23, 2024 · 3 comments
Open

大佬,有交流群互助群么。。。。 #204

XXX-BOX opened this issue Jan 23, 2024 · 3 comments

Comments

@XXX-BOX
Copy link

XXX-BOX commented Jan 23, 2024

实在是不知道哪一部分除了问题

{
"title": "新平凡",
"host": "http://www.xsbook.cc",
"query_url": "http://www.xsbook.cc/drfhdrfhdrfhdfhredh.php?ie=gbk&q=%s",
"query_method": 0,
"query_params": "action=search&q=%s",
"query_charset": 2,
"book_name_xpath": "/html/body/div[5]/div/div/div[position()>1]/div/div[2]/h4/a",
"book_mainpage_xpath": "/html/body/div[5]/div/div/div[position()>1]/div/div[2]/h4/a/@href",
"book_author_xpath": "/html/body/div[5]/div/div/div[position()>1]/div/div[2]/div[2]",
"enable_chapter_page": 0,
"chapter_page_xpath": "",
"chapter_title_xpath": "/html/body/div[6]/dl/dd[1]/a",
"chapter_url_xpath": "/html/body/div[6]/dl/dd[1]/a/@href",
"enable_chapter_next": 0,
"chapter_next_url_xpath": "",
"chapter_next_keyword_xpath": "",
"chapter_next_keyword": "",
"content_xpath": "//[@id="content"]",
"enable_content_next": 0,
"content_next_url_xpath": "",
"content_next_keyword_xpath": "",
"content_next_keyword": "",
"content_filter_type": 0,
"content_filter_keyword": ""
}

@binbyu
Copy link
Owner

binbyu commented Jan 23, 2024

应该是chrome自动获取的xpath有问题,chrome的html排版过,所以与html源码有可能稍微不同。
遇到这种情况需要根据html源码,手动写下xpath。
如下:

{
"title": "新平凡",
"host": "http://www.xsbook.cc",
"query_url": "http://www.xsbook.cc/drfhdrfhdrfhdfhredh.php?ie=gbk&q=%s",
"query_method": 0,
"query_params": "action=search&q=%s",
"query_charset": 2,
"book_name_xpath": "//div[@Class='bookinfo']/h4/a",
"book_mainpage_xpath": "//div[@Class='bookinfo']/h4/a/@href",
"book_author_xpath": "//div[@Class='author']",
"enable_chapter_page": 0,
"chapter_page_xpath": "",
"chapter_title_xpath": "//div[@Class='listmain']/dl/dd/a",
"chapter_url_xpath": "//div[@Class='listmain']/dl/dd/a/@href",
"enable_chapter_next": 0,
"chapter_next_url_xpath": "",
"chapter_next_keyword_xpath": "",
"chapter_next_keyword": "",
"content_xpath": "//*[@id='content']",
"enable_content_next": 0,
"content_next_url_xpath": "",
"content_next_keyword_xpath": "",
"content_next_keyword": "",
"content_filter_type": 0,
"content_filter_keyword": ""
}

@adadad11
Copy link

这个我导入,为什么不能用啊

@XXX-BOX
Copy link
Author

XXX-BOX commented Jun 5, 2024

这个我导入,为什么不能用啊

因为我也不能用,一直就没整明白要咋配,呜呜呜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants