采集节点管理
新建采集节点
设置内容字段获取规则
预览网址:
内容分页导航所在的区域匹配规则:
全部列出的分页列表
上下页形式或不完整的分页列表
分页列表规则 开始:
结束:
关键字过滤内容:
摘要过滤内容:
文章标题
匹配规则:
[内容]
过滤规则:
文章作者
匹配规则:
过滤规则:
文章来源
匹配规则:
过滤规则:
发布时间
匹配规则:
过滤规则:
GetOne("Select * From `#@__channeltype` where id='$channelid' "); $dtp = new DedeTagParse(); $dtp->SetNameSpace('field','<','>'); $dtp->LoadString($row['fieldset']); foreach($dtp->CTags as $ctag) { //采集禁用的字段 $notsend = $ctag->GetAtt('notsend'); if($notsend==1) continue; $fieldtype = $ctag->GetAtt('type'); $tname = $ctag->GetTagName(); $iname = $ctag->GetAtt('itemname'); //设置转换函数 if($fieldtype=='img') $functions = "@me=TurnImageTag(@me);"; else if($fieldtype=='softlinks'||$fieldtype=='addon') $functions = "@me=TurnLinkTag(@me);"; else if($fieldtype=='dtime') $functions = "@me=GetMkTime(@me);"; else $functions = ''; //对不同类型设置默认值 if($ctag->GetAtt('default')!='') { $dfvalue = $ctag->GetAtt('default'); } else if($fieldtype=='int'||$fieldtype=='float'||$fieldtype=='number') { $dfvalue = '0'; } else if($fieldtype=='dtime') { $dfvalue = time(); } else { $dfvalue = ''; } ?>
字段默认值:
匹配规则:
分页内容字段(规则中只允许单一的该类型字段)
下载字段里的多媒体资源
过滤规则:
自定义处理接口:
函数或程序的变量 @body 表示原始网页 @litpic 缩略图 @me 表示当前标记值和最终结果
Copyright © 2007-2021
DedeCMS
, 上海卓卓网络科技有限公司 (DesDev, Inc.)