火车采集器软件交流官方论坛

 找回密码
 加入会员
搜索
火车采集器V9版免费下载火车浏览器 - 可视采集,万能群发,全自动脚本工具
查看: 1874|回复: 0

如果遇到这样的情况,大侠们会在怎么做?

[复制链接]
发表于 2014-4-19 13:47:20 | 显示全部楼层 |阅读模式
本帖最后由 bnm123456 于 2014-7-5 08:18 编辑

像这样的应该怎么写规则?

内容页样式:

{"errNo":0,"errstr":"success","data":{"reply":[{"rid":311296675,"floorNum":1,"content":"这是楼主在1楼的评论","uname":"匿名用户***76","createTime":1397839774000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311296959,"floorNum":2,"content":"这是楼主在2楼的评论","uname":"匿名用户***76","createTime":1397839793000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311298594,"floorNum":3,"content":"这是楼主在3楼的评论","uname":"匿名用户***76","createTime":1397839916000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311299757,"floorNum":4,"content":"这是4楼的评论","uname":"匿名用户***12","createTime":1397840003000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311300618,"floorNum":5,"content":"这是5楼的评论","uname":"z*****e","createTime":1397840070000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311301196,"floorNum":6,"content":"这是6楼的评论","uname":"知*****帮","createTime":1397840115000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311301369,"floorNum":7,"content":"这是7楼的评论","uname":"红*****B","createTime":1397840128000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311304888,"floorNum":9,"content":"这是8楼的评论","uname":"G*****洛","createTime":1397840405000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311305164,"floorNum":10,"content":"这是9楼的评论","uname":"匿名用户***26","createTime":1397840428000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311306917,"floorNum":12,"content":"这是楼主在10楼的评论","uname":"匿名用户***76","createTime":1397840559000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311306965,"floorNum":13,"content":"这是楼主在13楼的评论","uname":"匿名用户***76","createTime":1397840563000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311308294,"floorNum":15,"content":"这是楼主在15楼回复10楼的评论","uname":"匿名用户***76","createTime":1397840660000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":10},{"rid":311309189,"floorNum":16,"content":"这是16楼的评论","uname":"匿名用户***17","createTime":1397840742000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311309508,"floorNum":17,"content":"这是17楼的评论","uname":"匿名用户***17","createTime":1397840773000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311310043,"floorNum":18,"content":"这是楼主在18楼回复9楼的评论","uname":"匿名用户***76","createTime":1397840824000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":9},{"rid":311310657,"floorNum":19,"content":"这是19楼的评论","uname":"6*****a","createTime":1397840879000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311310833,"floorNum":20,"content":"这是楼主在20楼回复17楼的评论","uname":"匿名用户***76","createTime":1397840896000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":17},{"rid":311311403,"floorNum":21,"content":"这是21楼的评论","uname":"匿名用户***17","createTime":1397840952000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311311509,"floorNum":22,"content":"这是楼主在22楼回复19楼的评论","uname":"匿名用户***76","createTime":1397840962000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":19},{"rid":311311535,"floorNum":23,"content":"这是23楼回复20楼的评论","uname":"匿名用户***76","createTime":1397840964000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":20},{"rid":311312567,"floorNum":24,"content":"这是楼主在24楼回复23楼的评论","uname":"匿名用户***76","createTime":1397841060000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":23},{"rid":311312891,"floorNum":26,"content":"这是26楼的评论","uname":"6*****a","createTime":1397841093000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311312984,"floorNum":27,"content":"这是楼主在27楼回复21楼的评论","uname":"匿名用户***76","createTime":1397841103000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":21},{"rid":311313130,"floorNum":28,"content":"这是28楼的评论","uname":"6*****a","createTime":1397841116000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311313344,"floorNum":29,"content":"这是29楼回复23楼的评论","uname":"匿名用户***17","createTime":1397841135000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":23},{"rid":311313657,"floorNum":30,"content":"这是30楼的评论","uname":"匿名用户***17","createTime":1397841165000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311314008,"floorNum":31,"content":"这是31楼的评论","uname":"匿名用户***17","createTime":1397841200000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311314316,"floorNum":32,"content":"这是楼主在32楼回复25楼的评论","uname":"匿名用户***76","createTime":1397841229000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":25},{"rid":311314438,"floorNum":33,"content":"这是楼主在33楼回复26楼的评论","uname":"匿名用户***76","createTime":1397841242000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":26},{"rid":311314674,"floorNum":34,"content":"这是34楼回复23楼的评论","uname":"匿名用户***17","createTime":1397841264000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":23},{"rid":311314796,"floorNum":35,"content":"这是楼主在35楼回复28楼的评论","uname":"匿名用户***76","createTime":1397841277000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":28},{"rid":311315207,"floorNum":36,"content":"这是楼主在36楼回复30楼的评论","uname":"匿名用户***76","createTime":1397841317000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":30},{"rid":311315373,"floorNum":37,"content":"这是37楼回复22楼的评论","uname":"匿名用户***17","createTime":1397841332000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":22},{"rid":311315700,"floorNum":38,"content":"这是38楼回复36楼的评论","uname":"匿名用户***17","createTime":1397841366000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":36},{"rid":311315897,"floorNum":39,"content":"这是39楼回复33楼的评论","uname":"6*****a","createTime":1397841384000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":33},{"rid":311316117,"floorNum":40,"content":"这是楼主在40楼回复34楼的评论","uname":"匿名用户***76","createTime":1397841405000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":34},{"rid":311316340,"floorNum":41,"content":"这是41楼回复35楼的评论","uname":"6*****a","createTime":1397841425000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":35},{"rid":311316557,"floorNum":42,"content":"这是42楼回复36楼的评论","uname":"6*****a","createTime":1397841448000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":36},{"rid":311316744,"floorNum":43,"content":"这是楼主在43楼回复39楼的评论","uname":"匿名用户***76","createTime":1397841466000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":39},{"rid":311317411,"floorNum":44,"content":"这是楼主在44楼回复38楼的评论","uname":"匿名用户***76","createTime":1397841535000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":38},{"rid":311317584,"floorNum":45,"content":"这是45楼回复43楼的评论","uname":"匿名用户***17","createTime":1397841552000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":43},{"rid":311317741,"floorNum":46,"content":"这是46楼的评论","uname":"匿名用户***17","createTime":1397841566000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311318298,"floorNum":47,"content":"这是47楼的评论","uname":"匿名用户***17","createTime":1397841622000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0},{"rid":311318312,"floorNum":48,"content":"这是48楼回复43楼的评论","uname":"6*****a","createTime":1397841624000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":43},{"rid":311318717,"floorNum":49,"content":"这是楼主在49楼回复46楼的评论","uname":"匿名用户***76","createTime":1397841663000,"isOwner":1,"isSelf":0,"isUserDeleted":0,"toFloor":46},{"rid":311318864,"floorNum":50,"content":"这是50楼的评论","uname":"匿名用户***17","createTime":1397841677000,"isOwner":0,"isSelf":0,"isUserDeleted":0,"toFloor":0}],"hasMore":1,"replyCount":117}}

先说下内容页面地址解析:

http://abc.com/msg/moresecret?&qid=92464656&createTime=1397839666000&rn=50&pn=0

qid=92464656 主贴编号

rid":311318864 回复楼层编号(绝对值,用不上)

createTime=1397839666000 时间戳(用不上)

rn=50 每页显示50条理论数据(有被删的,最多不超过50条)

pn=0翻页起始,比如0即该页面从1楼开始显示,如果是100的话,就从101楼显示

floorNum":50,表示的楼层编号

hasMore":1表示还有下文,可以翻页继续加载

请问这个多页规格该怎么写?

首先遇到hasMore":1,匹配最后的楼层号如floorNum":50,",下一页地址就是
http://abc.com/msg/moresecret?&qid=92464656&createTime=1397839666000&rn=50&pn=50
一直到遇到hasMore":0停止

内容解析:

uname":"匿名用户***76"是用户名

"toFloor":89 表示回复89

"isOwner":1 判断是否是楼主,1为是,0为不是

那么请问下,怎么把这些评论数据分类啊,比如在这个贴子里,把楼主和其他人的评论分开,再把该帖子内的用户名想同的归类为一个用户,并随机指定一个用户名给他(如果不行就不指定了),发布后,回复顺序是一样的,只不过用户名不再是原来的如:“匿名用户**16”这样的,替换成“打酱油的小三”,楼主回复的还是一样,比如楼主回复17楼,17楼原来是“匿名用户**16”评论的,但是“匿名用户**16”被替换成“打酱油的小三”了,使用发布后也是回复“打酱油的小三”,其他楼层互相回复也这样,跪求大神指点下,我才用火车头不久不太懂,写的不好!!谢谢了,好人一生平安啊!

您需要登录后才可以回帖 登录 | 加入会员

本版积分规则

QQ|手机版|Archiver|火车采集器官方站 ( 皖ICP备06000549 )

GMT+8, 2024-11-25 09:39

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表