赞同数
结果示例图:
模板:
{"_id":"zhihu-comments","startUrl":
["https://www.zhihu.com/question/54953286"],"selectors":[{"id":"comments","type":"SelectorElement","parentSelectors":["_root"],"selector":"ul.NestComment","multiple":true,"delay":0},
{"id":"user-name","type":"SelectorText","parentSelectors":["comments"],"selector":"span:nth-of-type(2) a","multiple":false,"regex":"","delay":0},{"id":"time","type":"SelectorText","parentSelectors":["comments"],"selector":"span.CommentItemV2-time","multiple":false,"regex":"","delay":0},{"id":"content","type":"SelectorText","parentSelectors":["comments"],"selector":"div.RichText","multiple":false,"regex":"","delay":0},{"id":"likes","type":"SelectorText","parentSelectors":["comments"],"selector":"button.CommentItemV2-likeBtn","multiple":false,"regex":"","delay":0}]}
模板套用步骤:
(1)进入需要抓取的回答页面,例如:https://www.zhihu.com/question/54953286
(2)点击 ”XX条评论“,弹出评论界面
(3)导入模板
(4)点击”data preview“
(5)全选 -> 复制 ->粘贴到 excel 文件里
(6)删除杂乱数据