This article aims to solve the problem of collecting general text pages by simple change and modification based on a representative text paging sampling rule and filtering rule.
I. Examples
Sample paging area code:
Sample paging area code:
= 700) window. open ('/upload/20074321296309.gif'); "src =" http://www.bkjia.com/uploads/allimg/131016/060F53N3-0.gif "onload =" if (this. width> '200') this. width = '000000'; "border = 0>
Sample paging area sampling code:
Paging area sampling (matching ):
= 700) window. open ('/upload/20074321298864.gif'); "src =" http://www.bkjia.com/uploads/allimg/131016/060F52001-1.gif "onload =" if (this. width> '200') this. width = '000000'; "border = 0>
Sample paging content filtering rules:
Paging content filtering rules:
= 700) window. open ('/upload/20074321298386.gif'); "src =" http://www.bkjia.com/uploads/allimg/131016/060F5B40-2.gif "onload =" if (this. width> '200') this. width = '000000'; "border = 0>
Sample Content preview:
Sample Content preview:
= 700) window. open ('/upload/20074321298685.gif'); "src =" http://www.bkjia.com/uploads/allimg/131016/060F52939-3.gif "onload =" if (this. width> '200') this. width = '000000'; "border = 0>
Full sample code (Note: This code is the changed code on the original basis. The original code version is different and is invalid after direct import, therefore, many friends in the dede Forum said, 'the code that can be directly imported into others' id', which is true ):
Output result: http://wen.soudata.net/html/guizeceshi/caijibiji/20070327/2044_2.html
Compare with the original article: http://www.xiaocao.com/text/class1/class1/200609/text_28623.html
This is all the code. You can import it as follows:
Copy codeThe Code is as follows:
{! -- Basic node information --}
{Dede: item name = 'Forum example_work summary_success (Change )'
Imgurl = '/upimg' imgdir = '../upimg' language = 'gb2312 'typeid = '1' macthtype = 'string '}
{/Dede: item}
{! -- Collection list acquisition rules --}
{Dede: list source = 'var' sourcetype = 'archivees'
Varstart = ''varend = ''}
{Dede: url value = 'HTTP: // www.xiaocao.com/text/class1/class1/200609/text_28623.html'{#/dede:url}
{Dede: need} {/dede: need}
{Dede: cannot} {/dede: cannot}
{Dede: linkarea} [var: region] {/dede: linkarea}
{/Dede: list}
{! -- Webpage Content Retrieval rules --}
{Dede: art}
{Dede: sppage sptype = 'full'} <p align = 'center'> <B> <font color = 'red'> [1] </font> [var: paging area] </B> {/dede: sppage}
{Dede: note field = 'dede _ archives. title' value = '[var: content] 'comment = 'Article title'
Isunit = ''isdown = ''}
{Dede: match} <title> [var: content] </title> {/dede: match}
{Dede: function} {/dede: function}
{/Dede: note}
{Dede: note field = 'dede _ archives. sortrank 'value =' [var: content] 'comment = 'sort level'
Isunit = ''isdown = ''}
{Dede: match} {/dede: match}
{Dede: function} @ me = time (); {/dede: function}
{/Dede: note}
{Dede: note field = 'dede _ archives. write' value = '[var: content] 'comment = 'author'
Isunit = ''isdown = ''}
{Dede: match} {/dede: match}
{Dede: function} {/dede: function}
{/Dede: note}
{Dede: note field = 'dede _ archives. litpic 'value =' [var: content] 'comment = 'thumbnails'
Isunit = ''isdown = ''}
{Dede: match} {/dede: match}
{Dede: function} @ me = @ litpic; {/dede: function}
{/Dede: note}
{Dede: note field = 'dede _ archives. pubdat' value = '[var: content] 'comment = 'publication time'
Isunit = ''isdown = ''}
{Dede: match} {/dede: match}
{Dede: function} if (@ me! = "") @ Me = GetMkTime (@ me );
Else @ me = time (); {/dede: function}
{/Dede: note}
{Dede: note field = 'dede _ archives. senddate' value = '[var: content] 'comment = 'entry time'
Isunit = ''isdown = ''}
{Dede: match} {/dede: match}
{Dede: function} @ me = time (); {/dede: function}
{/Dede: note}
{Dede: note field = 'dede _ addonarticle. body' value = '[var: content] 'comment = 'Article Content'
Isunit = '1' isdown = ''}
{Dede: match} <script language = "JavaScript" type = "text/javascript" src = "/AD/artcontent. js "> </script> [var: content] <table width =" 100% "border =" 0 "cellspacing =" 0 "cellpadding =" 0 ">
{/Dede: match}
{Dede: trim} <p align = 'center'> <B> (. *) </B> </p> {/dede: trim}
{Dede: function} {/dede: function}
{/Dede: note}
{Dede: note field = 'dede _ archives. source' value = '[var: content] 'comment = 'Article source'
Isunit = ''isdown = ''}
{Dede: match} {/dede: match}
{Dede: function} {/dede: function}
{/Dede: note}
{/Dede: art}