Home  >  Article  >  Backend Development  >  Dede3.1 paging text collection and filtering rules detailed (graphic tutorial) continued 2_PHP tutorial

Dede3.1 paging text collection and filtering rules detailed (graphic tutorial) continued 2_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:55:33820browse

Friends who know a little bit about dede collection rules can completely skip the previous part. Let’s take a look at how to solve the problem of paging collection with static braking and constant change.
2. Collect new targets

Target address:
1. http://www.tiansou.net/Html/Y_CYFW/R_Gzzj/F_Gzjh/index.html
2. http: //www.tiansou.net/Html/Y_CYFW/R_Gzzj/F_Gzjh/2007-2/9/20070209110903558.html
The reason why two target pages are selected is because one of the above two pages has pagination, and the other No, and there is a big difference in pagination and full-text sampling. The following description has been modified on the basis of collecting all links to the target address (homepage). Some places may appear to be confusing, just for the convenience of explanation.

Target text part header code 1:

Dede3.1 paging text collection and filtering rules detailed (graphic tutorial) continued 2_PHP tutorial
Target text part header code 2:

Dede3.1 paging text collection and filtering rules detailed (graphic tutorial) continued 2_PHP tutorial

Pass It is not difficult to find that the starting collection part of the two text parts can be determined as the black part. The beginning part is easy to say. The code is as follows:

Copy the code The code is as follows :

                                                                                                                                                                  




Target tail and pagination area code 1:



= 700) window.open('/upload/200743213057312.gif');" src="http://www.bkjia.com/uploads/allimg/131016/06064K143-2.gif" onload="if(this.width >'700')this.width='700';" border=0> Target tail and paging area code 2:
Dede3.1 paging text collection and filtering rules detailed (graphic tutorial) continued 2_PHP tutorialCompare the two endings. Although I want to advance the ending of the first one a little further, there is no way. We have to consider everything The common part of the link has to be the part outlined in black. This will also make it a little troublesome to determine the filtering rules in the future. This is a story later. Let’s finalize the ending part first:
Dede3.1 paging text collection and filtering rules detailed (graphic tutorial) continued 2_PHP tutorial The code is as follows:

/TD>
                                                                                       


http://www.bkjia.com/PHPjc/318217.html

www.bkjia.com

true

http: //www.bkjia.com/PHPjc/318217.html

Friends who know a little bit about dede collection rules can skip the previous part. Let’s take a look at how to brake with static, Solve the problem of paging collection without changing anything. 2. Collect new targets. Target destination...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn