时间
结果示例图:
模板:
{"_id":"jianshu-zuozhe","startUrl":
["https://www.jianshu.com/u/e605fbe70d40"],"selectors":[{"id":"info","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"div.content","multiple":true,"delay":"2000"},{"id":"title","type":"SelectorLink","parentSelectors":["info"],"selector":"a.title","multiple":false,"delay":0},{"id":"reads","type":"SelectorText","parentSelectors":
["info"],"selector":".meta a:nth-of-type(1)","multiple":false,"regex":"","delay":0},{"id":"comments","type":"SelectorText","parentSelectors":
["info"],"selector":"a:nth-of-type(2)","multiple":false,"regex":"","delay":0},{"id":"likes","type":"SelectorText","parentSelectors":
["info"],"selector":"span:nth-of-type(2)","multiple":false,"regex":"","delay":0},{"id":"time","type":"SelectorText","parentSelectors":["info"],"selector":"span.time","multiple":false,"regex":"","delay":0}]}
模板套用步骤:
(1)进入需要抓取的作者文章页面,例如:https://www.jianshu.com/u/e605fbe70d40
(2)导入模板
(3)替换 Start URL为要抓取的网页链接
(4)开始抓取