How to set the article source of phpcms?
How to set the article source of phpcms:
1. First we need to create a new collection task and click on the right side of [Start URL] Add button.
2. The system pops up the [Add start collection address] dialog box, which gives the collection time sharing among the five. Generally, the ones we use more are [Single URL], [Batch/Multiple Pages], [RSS address] These three methods. We enter the URLs that need to be collected under single or multiple URLs, and click the [Add] button and the [Finish] button on the right.
3. After the URL is added, we need to tell the collection software which part of the web page we need to collect. At this time, we need to click the Add button on the right side of [Multi-level URL Acquisition] to add collection rules.
4. In the [Add multi-level URL rules] option box, we usually check [Obtain address links from automatic page analysis] and set [Extract URLs from the selected area] below to achieve this The purpose of collecting a certain web page.
5. We can get which columns we need by looking at the HTML code of the page, or by looking at the commonality of these concatenations, and then filter out these URLs through URL filtering. For example, the filter condition in the text is : http://news.baidu.com/n?cmd=4&class
6. To obtain the COOKIE information of this page, open the [Built-in Micro-Browser] dialog box, click Cookie in it, please confirm to save.
7. Click the [Test URL Collection] button on the lower right to check whether [Test Address Collection] meets the requirements. If it does not meet the requirements, you need to adjust the rules in [Step 5].
Recommended tutorial: "phpcms tutorial"
The above is the detailed content of How to set the article source of phpcms?. For more information, please follow other related articles on the PHP Chinese website!