In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain the collection method of wordpress for you in detail. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
WordPress is a website-building program platform developed by PHP language. Now many bloggers use wp, and many website production training uses wp, especially when doing a collection station, the common energy of wordpress is very strong. The following is to introduce how to achieve the automatic collection function of wp.
1. Install the website collection plug-in: WP-AutoPost
2. After clicking "New Task", enter the task name to create a new task. After creating the new task, you can see the task in the task list and make more settings for the task. (there is no need to change the settings in this part, the only thing that needs to be changed is the collection time. )
3. Article source setting. Under this tab, we need to set the article list URL of the article source and the matching rules for specific articles. Let's take collecting "Sina Internet News" as an example. The URL of the article list is http://roll.tech.sina.com.cn/internet_worldlist/index.shtml, so you can enter it in the URL of the manually specified article list, as shown below:
4. The matching rules of the article URL. The setting of the URL matching rules of the article is very simple, without complex settings, and provides two matching patterns, which can be matched using URL wildcards or CSS selectors. It is usually easier to match using URL wildcards, but sometimes it is more accurate to use CSS selectors.
5. Use URL wildcards to match. By clicking on the article on the list URL http://roll.tech.sina.com.cn/internet_worldlist/index.shtml, we can find that the URL of each article has the following structure: http://tech.sina.com.cn/i/2013-06-27/16328485884.shtml, so replace the changed numbers or letters in URL with wildcards (*), such as: http://tech.sina.com.cn/i/(*)/(*).shtml. Duplicate URLs can be redirected using 301.
6. Use CSS selector for matching. To match using the CSS selector, we only need to set the CSS selector for the article URL. By viewing the source code of the list URL http://roll.tech.sina.com.cn/internet_worldlist/index.shtml, we can easily set it to find the code for the hyperlink of the article under the list URL, as shown below:
7. You can see that the hyperlink A tag of the article is inside the tag whose class is "contList", so the CSS selector of the article URL only needs to be set to .contList a, as shown below:
8. After the setting is completed, if you don't know whether the setting is correct, you can click the test button in the figure above. If the setting is correct, all the article names and corresponding web addresses under the list URL will be listed, as shown below:
9. Other settings do not need to be modified.
10. The above collection method is suitable for WordPress multi-site function.
This is the end of the collection method of wordpress. I hope the above content can help you to some extent and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.