热度
结果示例图:
模板:
{"_id":"zhihuhot","startUrl":["https://www.zhihu.com/hot"],"selectors":[{"id":"aaa","type":"SelectorElement","parentSelectors":["_root"],"selector":"section","multiple":true,"delay":0},{"id":"title","type":"SelectorLink","parentSelectors":
["aaa"],"selector":".HotItem-content a","multiple":false,"delay":0},{"id":"hot","type":"SelectorText","parentSelectors":
["aaa"],"selector":"div.HotItem-metrics","multiple":false,"regex":"","delay":0}]}
模板套用步骤:
(1)进入知乎热榜页面,例如:https://www.zhihu.com/hot
(2)导入模板
(3)替换 Start URL 为要抓取的网页链接
(4)开始抓取