评论内容
结果示例图:
模板:
{"_id":"jianshu-comments","startUrl":["https://www.jianshu.com/p/4ab25e25a140"],"selectors":[{"id":"aaaa","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"aaa","multiple":false,"delay":"2000"},{"id":"info","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"div._2IUqvs","multiple":true,"delay":"3000","clickElementSelector":"li.LaYREM","clickType":"clickOnce","discardInitialElements":"do-not-discard","clickElementUniquenessType":"uniqueCSSSelector"},{"id":"lou","type":"SelectorText","parentSelectors":
["info"],"selector":"._1xqkrI span","multiple":false,"regex":"","delay":0},{"id":"time","type":"SelectorText","parentSelectors":["info"],"selector":"time","multiple":false,"regex":"","delay":0},{"id":"content","type":"SelectorText","parentSelectors":["info"],"selector":"div._2bDGm4","multiple":false,"regex":"","delay":0}]}
模板套用步骤:
(1)进入需要抓取的文章评论页面,例如:https://www.jianshu.com/p/4ab25e25a140
(2)导入模板
(3)替换 Start URL为要抓取的网页链接
(4)开始抓取