• dushu.tw 读书网、小说免费阅读网站

笔趣阁(b5200.net)关关采集免费规则教程

网站 举个栗子 1个月前 (09-17) 138次浏览 0个评论 扫描二维码

笔趣阁(b5200.net)关关采集免费规则教程

每次有空我都写几个规则,这个规则是利用关关 3.5 版本 写的是笔趣阁模板的站点,这个站点只需要修改简单的部分代码就可以采集

介绍一下关关采集规则当中需要用到的一些标签
\d* 表示数字 \s* 表示空格+换行 .+? 表示字符(不能为空) .* 表示字符(可以为空)
() 表示我们需要的部分 ((.|\n)*) 章节的内容部分,包括了换行。
=====与杰奇后台标签的对应关系=====
!!!! 相当于 ([^><]*)   ~~~~ 相当于 ([^><‘”]*)   ^^^^ 相当于 ([^><\d]*) $$$$ 相当于 ([\d]*) **** 相当于 (.*) 如果不行。就根据相关提示调整 复制代码保存为 xml 文件。放在关关规则文件夹里。在关关里面选择即可,规则适用于 V3.5 版本

<?xml version="1.0"?>
<RuleConfigInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <RuleVersion>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern>1</Pattern>
    <RegexName>RuleVersion</RegexName>
  </RuleVersion>
  <RuleID>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern>101</Pattern>
    <RegexName>RuleID</RegexName>
  </RuleID>
  <GetSiteName>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern>b5200.net</Pattern>
    <RegexName>GetSiteName</RegexName>
  </GetSiteName>
  <GetSiteCharset>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern>gbk</Pattern>
    <RegexName>GetSiteCharset</RegexName>
  </GetSiteCharset>
  <GetSiteUrl>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase Singleline</Options>
    <Pattern>http://www.b5200.net/</Pattern>
    <RegexName>GetSiteUrl</RegexName>
  </GetSiteUrl>
  <NovelSearchUrl>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>NovelSearchUrl</RegexName>
  </NovelSearchUrl>
  <NovelSearchData>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>NovelSearchData</RegexName>
  </NovelSearchData>
  <NovelSearch_GetNovelKey>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>NovelSearch_GetNovelKey</RegexName>
  </NovelSearch_GetNovelKey>
  <NovelListUrl>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern>http://www.b5200.net/</Pattern>
    <RegexName>NovelListUrl</RegexName>
  </NovelListUrl>
  <NovelListFilter>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>NovelListFilter</RegexName>
  </NovelListFilter>
  <NovelList_GetNovelKey>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern><span class="s2"><a href="http://www.b5200.net/\d*_(\d*)/" target="_blank">(.+?)</a></Pattern>
    <RegexName>NovelList_GetNovelKey</RegexName>
  </NovelList_GetNovelKey>
  <NovelUrl>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern>http://www.b5200.net/{NovelKey/1000}_{NovelKey}/</Pattern>
    <RegexName>NovelUrl</RegexName>
  </NovelUrl>
  <NovelName>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern><meta property="og:novel:book_name" content="(.+?)"/></Pattern>
    <RegexName>NovelName</RegexName>
  </NovelName>
  <NovelErr>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase Singleline</Options>
    <Pattern>对不起,该文章不存在</Pattern>
    <RegexName>NovelErr</RegexName>
  </NovelErr>
  <NovelAuthor>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern><meta property="og:novel:author" content="(.+?)"/></Pattern>
    <RegexName>NovelAuthor</RegexName>
  </NovelAuthor>
  <Isboy>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>Isboy</RegexName>
  </Isboy>
  <LagerSort>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern><meta property="og:novel:category" content="(.+?)"/></Pattern>
    <RegexName>LagerSort</RegexName>
  </LagerSort>
  <SmallSort>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern><meta property="og:novel:category" content="(.+?)"/></Pattern>
    <RegexName>SmallSort</RegexName>
  </SmallSort>
  <NovelIntro>
    <FilterPattern>&nbsp;
</div>
<div>
</p>
<p>
作者:.+?<br>
最新章节 :.+?<br>
最新章节预览:</FilterPattern>
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern><meta property="og:description" content="((.|\n)+?)"/></Pattern>
    <RegexName>NovelIntro</RegexName>
  </NovelIntro>
  <NovelKeyword>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>NovelKeyword</RegexName>
  </NovelKeyword>
  <NovelDegree>
    <FilterPattern>b♂连载中
a♂完本</FilterPattern>
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern><span class="(.+?)"></span></Pattern>
    <RegexName>NovelDegree</RegexName>
  </NovelDegree>
  <NovelCover>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern><meta property="og:image" content="(.+?)"/></Pattern>
    <RegexName>NovelCover</RegexName>
  </NovelCover>
  <NovelDefaultCoverUrl>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>NovelDefaultCoverUrl</RegexName>
  </NovelDefaultCoverUrl>
  <NovelInfo_GetNovelPubKey>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern><meta property="og:novel:read_url" content="(.+?)"/></Pattern>
    <RegexName>NovelInfo_GetNovelPubKey</RegexName>
  </NovelInfo_GetNovelPubKey>
  <PubCookies>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>PubCookies</RegexName>
  </PubCookies>
  <PubIndexUrl>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern>http://www.b5200.net/{NovelKey/1000}_{NovelKey}/</Pattern>
    <RegexName>PubIndexUrl</RegexName>
  </PubIndexUrl>
  <PubIndexErr>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern>无法找到该页</Pattern>
    <RegexName>PubIndexErr</RegexName>
  </PubIndexErr>
  <PubVolumeContent>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>PubVolumeContent</RegexName>
  </PubVolumeContent>
  <PubVolumeSplit>
    <FilterPattern />
    <Method>Spilt</Method>
    <Options>IgnoreCase</Options>
    <Pattern><div class="box_con"></Pattern>
    <RegexName>PubVolumeSplit</RegexName>
  </PubVolumeSplit>
  <PubVolumeName>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern><div id="list"></Pattern>
    <RegexName>PubVolumeName</RegexName>
  </PubVolumeName>
  <PubChapterName>
    <FilterPattern>xinbqg.com
www.xinbqg.com
m.xinbqg.com
http://
https://
新笔趣阁
&nbsp;
</div></FilterPattern>
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern><dd><a href="http://www.b5200.net/\d+_\d+/\d+.html">(.+?)</a></dd></Pattern>
    <RegexName>PubChapterName</RegexName>
  </PubChapterName>
  <PubChapter_GetChapterKey>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern><dd><a href="(http://www.b5200.net/\d+_\d+/\d+.html)">.+?</a></dd></Pattern>
    <RegexName>PubChapter_GetChapterKey</RegexName>
  </PubChapter_GetChapterKey>
  <PubContentUrl>
    <FilterPattern />
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern>{ChapterKey}</Pattern>
    <RegexName>PubContentUrl</RegexName>
  </PubContentUrl>
  <PubContentErr>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern>您访问的页面可能暂时未更新、已更名或已经删除,请稍后访问或马上点此举报:</Pattern>
    <RegexName>PubContentErr</RegexName>
  </PubContentErr>
  <PubContent_GetTextKey>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>PubContent_GetTextKey</RegexName>
  </PubContent_GetTextKey>
  <PubTextUrl>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>PubTextUrl</RegexName>
  </PubTextUrl>
  <PubContentText>
    <FilterPattern><script>.+?</script>
xinbqg.com
www.xinbqg.com
m.xinbqg.com
https://
新笔趣阁
&nbsp;
</div>
<br /><br /><p>(.+?)</p>|</FilterPattern>
    <Method>Match</Method>
    <Options>IgnoreCase</Options>
    <Pattern><div id="content">((.|\n)+?)</div></Pattern>
    <RegexName>PubContentText</RegexName>
  </PubContentText>
  <PubContentPageArea>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>PubContentPageArea</RegexName>
  </PubContentPageArea>
  <PubContentPage>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>PubContentPage</RegexName>
  </PubContentPage>
  <PubContentPageUrl>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>PubContentPageUrl</RegexName>
  </PubContentPageUrl>
  <PubContentPageKey>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>PubContentPageKey</RegexName>
  </PubContentPageKey>
  <PubContentChapterName>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>PubContentChapterName</RegexName>
  </PubContentChapterName>
  <PubContentChapterNum>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>PubContentChapterNum</RegexName>
  </PubContentChapterNum>
  <PubContentImages>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>PubContentImages</RegexName>
  </PubContentImages>
  <PubContentReplace>
    <FilterPattern />
    <Method>Match</Method>
    <Options>None</Options>
    <Pattern />
    <RegexName>PubContentReplace</RegexName>
  </PubContentReplace>
</RuleConfigInfo>

举个栗子 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:笔趣阁(b5200.net)关关采集免费规则教程
喜欢 (0)
举个栗子
关于作者:
建筑工地上施工员,闲暇时弄个博客打发时间,
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址