帝国CMS教程
帝国CMS模板网>帝国CMS教程

帝国cms采集分页规则几种写法

来源:帝国CMS模板网 作者:帝国CMS教程 时间:2010-02-08
浏览:8.7千+ 收藏 点赞(34)

用过帝国cms采集功能的人估计都很头疼一件事,那就是它的采集分页规则很麻烦。刚开始我都不会写,后来学了些,有时候写了很多遍还都不行。当然了,它作为一个页面很难赶上火车头这样的软件,但是用帝国的采集足可以应付大部分网站了,现在来看看如何写帝国cms采集分页规则。

第一种:

<p align='center'><b><font color='red'>[1]</font>&nbsp;<a href='/Eat/RMenu/200806/38611_2.html'>[2]</a>&nbsp;<a href='/Eat/RMenu/200806/38611_3.html'>[3]</a>&nbsp;<a href='/Eat/RMenu/200806/38611_4.html'>[4]</a>&nbsp;<a href='/Eat/RMenu/200806/38611_2.html'>下一页</a> </b></p>

编写的规则:

选全部列出式区域正则:

<p align='center'><b><font color='red'>[!--smallpageallzz--]'>下一页

链接正则:

<a href='[!--pageallzz--]'>

第二种

采集代码

<p align='center'><b><font color='red'>[1]</font>&nbsp;<a href='/lw/3/lw_31205_2.html'>[2]</a>&nbsp;<a href='/lw/3/lw_31205_2.html'>下一页</a> </b></p> <center>《

编写的规则:

选用上下导航式:分页区域正则:

<font color='red'>[!--smallpagezz--]下一页

分页链接正则:

<a href='[!--pagezz--]'

新闻正文正则:

<script src="xx.js">
</script></td>
          </tr>
        </table>[!--newstext--]</td>
    </tr>
    <tr>
      <td width=5></td>

过滤广告正则:
</p> <center>[!--ad--]</center>,</p><p align='center'>[!--ad--]</b>

例如:https://www.daixiao360.cn/jc/104.html

第三种

<p align="center"><img src="/bgy/Images_1/sy8.gif" border="0"  align="absbottom"> <FONT style="COLOR: #ff0000">【1】</font>  <a class=page href="094221656-2.html" target=_self>【2】</a>  <a class=page href="094221656-3.html" target=_self>【3】</a>  <a class=page href="094221656-4.html" target=_self>【4】</a>  <a class=page href="094221656-5.html" target=_self>【5】</a>  <a href="094221656-2.html"><img src="/gwy/Images1/xy.gif" border="0"  align="absbottom"></a></p>

编写的规则:

"全部列出"式正则设置:

                      分页区域正则(无)
                      分页链接正则:     <a class=page href="[!--pageallzz--]" target=_self>

第四种:

<DIV class=pageContainer> <DIV class=pager><span class="nextprev">&lt;&lt; 前一页</span><span class="current">1</span><a href="0731_3493_686224_1.shtml" title="转到第2页">2</a><a href="0731_3493_686224_2.shtml" title="转到第3页">3</a><a href="0731_3493_686224_1.shtml" class="nextprev" title="后一页">后一页 &gt;&gt;</a></DIV></DIV></DIV>
</div>

选全部列出式区域正则:

<DIV class=pageContainer> <DIV class=pager><span class="nextprev">[!--smallpageallzz--]" class="nextprev" title="后一页">

链接正则:

<a href="[!--pageallzz--]" 
帝国CMS模板