针对单本小说采集规则的一点思考以及成功的规则

205267367   ·   发表于 2020-4-19   ·   技术交流

首先不分享规则,因为我也不会写,都是网上找的。

因为以前的小说站有些数据需要,因此就需要单本,但总是提示获取不到列表,随后我想了一下能不能跳过列表呢?但很明显不行。因此在想搜索列表是不是列表呢,这次对了,我是在别人分享的采集规则的前提下修改,列表网址=为那本小说的搜索网址。列表规则=搜索列表的规则。最后成功。

不清楚还有没有更nb的单本规则或策略,但我既然搞了就分享一下逻辑喽!

6 条回复   |  直到 2020-4-19 | 572 次浏览

yuji
发表于 2020-4-19

好像不行,搜索出来的列表似乎不能作为列表规则。

评论列表

  • 加载数据中...

编写评论内容

205267367
发表于 2020-4-19

yuji

2020-4-19

好像不行,搜索出来的列表似乎不能作为列表规则。

可以的!我这边就成功了,你去找个别人写好的可以采的规则导入然后在去改,列表网址和列表规则这两个需要改

评论列表

  • 加载数据中...

编写评论内容

205267367
发表于 2020-4-19

yuji

2020-4-19

好像不行,搜索出来的列表似乎不能作为列表规则。

INSERT INTO `ky_collect` (`id`, `title`, `charset`, `type`, `url_complete`, `url_reverse`, `pic_local`, `source_url`, `section`, `url_rule`, `url_merge`, `url_must`, `url_ban`, `relation_url`, `rule`, `category_way`, `category_fixed`, `category_equivalents`, `status`, `create_time`, `update_time`, `collect_time`, `update`) VALUES

(1, '单本biquge.info', 'auto', 'novel', 1, 0, 1, '[{"url":"https://www.biquge.info/modules/article/search.php?searchkey=%E5%BF%83%E8%B7%B3%E9%A2%86%E5%9F%9F","type":"3"}]', '<tr>[内容]</table>', '<td class="odd"><a href="[内容1]">(*)</a></td>', '', '', '', '[{"title":"章节页","page":"default","chapter":"1","section":"<div id=\\"list\\">[内容]<div id=\\"footer\\" name=\\"footer\\">","url_rule":"<dd><a href=\\"[内容1]\\" title=\\"(*)\\">[章节标题]</a></dd>","url_merge":""}]', '{"category":{"field":"category","source":"default","rule":"<meta property=\\"og:novel:category\\" content=\\"[内容1]\\"\\/>","merge":"","strip":""},"title":{"field":"title","source":"default","rule":"<meta property=\\"og:novel:book_name\\" content=\\"[内容1]\\"\\/>","merge":"","strip":"","replace":""},"author":{"field":"author","source":"default","rule":"<meta property=\\"og:novel:author\\" content=\\"[内容1]\\"\\/>","merge":"","strip":"","replace":""},"serialize":{"field":"serialize","source":"default","rule":"<meta property=\\"og:novel:status\\" content=\\"[内容1]\\"\\/>","merge":"","serial":"连载中","over":"完结","strip":"","replace":""},"pic":{"field":"pic","source":"default","rule":"<meta property=\\"og:image\\" content=\\"[内容1]\\"\\/>","merge":"","strip":"","replace":""},"content":{"field":"content","source":"default","rule":"<div id=\\"intro\\">(*)<p>[内容1]<\\/p>","merge":"","strip":"","replace":""},"tag":{"field":"tag","source":"default","rule":"<meta property=\\"og:novel:category\\" content=\\"[内容1]\\"\\/>","merge":"","strip":"","replace":""},"chapter_title":{"field":"chapter_title","source":"0","rule":"<h1>[内容1]<\\/h1>","merge":"","strip":"","replace":""},"chapter_content":{"field":"chapter_content","source":"0","rule":"<div id=\\"content\\">[内容1]<\\/div>","merge":"","strip":"","replace":"[{\\"find\\":\\"www。biquge。info\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"www.biquge.info\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"www.biquge.info\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"www。biquge。info\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"www.biquge.info\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"www.biquge.info\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"www。biquge。info\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"www。biquge。info\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"www.biquge.info\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"www。biquge。info\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"zuopingshuji\\",\\"replaces\\":\\" \\"},{\\"find\\":\\"www。biquge。info\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"xhsjyd\\",\\"replaces\\":\\" \\"},{\\"find\\":\\"<!--go-->\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"<!--over-->\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"笔@趣@阁\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"wWw。biqUgE。info\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"笔&趣&阁\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"笔%趣%阁\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"笔×趣×阁\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"笔~趣~阁\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"笔?趣?阁\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"wWw。biquge。info\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"笔|趣|阁\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"笔、趣、阁\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"笔《趣》阁\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"笔・趣・阁\\",\\"replaces\\":\\"\\"},{\\"find\\":\\"www.biquge.info\\",\\"replaces\\":\\"\\"}]"}}', 0, 0, '[{"target":"玄幻小说","local":"18"},{"target":"修真小说","local":"19"},{"target":"都市小说","local":"21"},{"target":"穿越小说","local":"18"},{"target":"网游小说","local":"34"},{"target":"科幻小说","local":"18"}]', 1, 1559868497, 1587264237, 1587272387, 1);


评论列表

  • 加载数据中...

编写评论内容

205267367
发表于 2020-4-19

直接上规则,需要的自己看,应该没违规的吧,数据库,sql执行

评论列表

  • 加载数据中...

编写评论内容

yuji
发表于 2020-4-19

205267367

2020-4-19

直接上规则,需要的自己看,应该没违规的吧,数据库,sql执行

刚刚我也做了一个,成功了,我看了一下应该是搜索的searchkey的问题,换了一个目标站就可以了。

评论列表

  • 加载数据中...

编写评论内容

yuji
发表于 2020-4-19

search?keyword 这个搜出来的列表不能用。

search.php?searchkey 这个搜出来的就可以获取到。

评论列表

  • 加载数据中...

编写评论内容
登录后才可发表内容