好友
阅读权限20
听众
最后登录1970-1-1
|
楼主,我想监控小米社区的帖子,规则测试成功的,但是保存规则就提示创建失败了(3种模式都试过了),不知道是什么原因,楼主帮忙瞧瞧??
创建失败SQL语句:insert into rule(isdo,code,url,before,after,regular,buquan,cookie,tindex,uindex,oindex,ua,class,url,name,type) values('0','0','http://bbs.xiaomi.cn/f-385-0-0-send-0-0-1','<div class='theme_con'>','<div class="base_widget_paging">','<div class='title'>(.*?)<a href="http://bbs.xiaomi.cn/t(.*?)" class='title_name ' target="_blank" rel="noopener noreferrer">(.*?)</a>(.*?)<div class='auth_msg clearfix'>(.*?)"noopener noreferrer">(.*?)</a>(.*?)<i class(.*?)"time txt">(.*?)</a>(.*?)</div>','http://bbs.xiaomi.cn/t-[2]','','3','2','2','Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36 SE 2.X MetaSr 1.0',2,'http://bbs.xiaomi.cn/f-385-0-0-send-0-0-1','小米-note','8')
方案名称:小米-note
监控网址:http://bbs.xiaomi.cn/f-385-0-0-send-0-0-1
采集区域开始:<div class='theme_con'>
采集区域结束:<div class="base_widget_paging">
正则匹配:<div class='title'>(.*?)<a href="http://bbs.xiaomi.cn/t-(\d*)" class='title_name ' target="_blank" rel="noopener noreferrer">(.*?)</a>(.*?)<div class='auth_msg clearfix'>(.*?)"noopener noreferrer">(.*?)</a>(.*?)<i class(.*?)"time txt">(.*?)</a>(.*?)</div>
合成网址:http://bbs.xiaomi.cn/t-[2]
|
免费评分
-
查看全部评分
|