

WordPress如何配置及使用WP-AutoPost自动采集发布插件
source link: https://www.huhexian.com/14537.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

WordPress如何配置及使用WP-AutoPost自动采集发布插件
WP-AutoPost应该是是目前最好用的WordPress自动采集发布插件,WP-AutoPost插件最大的特点是可以采集任何网站的内容,有很多小伙版不知道如何配置和使用WP-AutoPost插件,下面就来给大家分享一下WP-AutoPost插件的配置方法和使用教程。
安装网站采集插件:WP-AutoPost

文章来源设置。在该选项卡下我们需要设置文章来源的文章列表网址及具体文章的匹配规则。我们以采集”新浪互联网新闻“为例,文章列表网址为http://roll.tech.sina.com.cn/internet_worldlist/index.shtml,因此在手工指定文章列表网址中输入该网址即可,如下所示:

使用URL通配符匹配。通过点击列表网址 http://roll.tech.sina.com.cn/internet_worldlist/index.shtml 上的文章,我们可以发现每篇文章的URL都为如下结构:http://tech.sina.com.cn/i/2013-06-27/16328485884.shtml,因此将URL中变化的数字或字母替换为通配符 (*) 即可,如:http://tech.sina.com.cn/i/(*)/(*).shtml 。重复的网址可以使用301重定向。
使用CSS选择器进行匹配。使用CSS选择器进行匹配,我们只需要设置文章网址的CSS选择器即可,通过查看列表网址http://roll.tech.sina.com.cn/internet_worldlist/index.shtml的源代码即可轻松设置,找到列表网址下文章超链接的代码,如下所示:



Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK