价格(原价/现价)
结果示例图:
模板:
{"_id":"qianliao-fenlei","startUrl":
["https://m.qlchat.com/wechat/page/recommend?shareSourceId=45x9dr16f9789c5ea&tagId=2000002423045279&userSourceId=befe8324fc6d#subItem"],"selectors":
[{"id":"info","type":"SelectorElement","parentSelectors":["_root"],"selector":"a[isvisible]","multiple":true,"delay":0},{"id":"name","type":"SelectorText","parentSelectors":["info"],"selector":"div.name","multiple":false,"regex":"","delay":0},{"id":"redu","type":"SelectorText","parentSelectors":
["info"],"selector":"div.learn-num","multiple":false,"regex":"","delay":0},{"id":"price","type":"SelectorText","parentSelectors":
["info"],"selector":".price > span:nth-of-type(1)","multiple":false,"regex":"","delay":0},{"id":"class","type":"SelectorText","parentSelectors":
["info"],"selector":".price > span:nth-of-type(2)","multiple":false,"regex":"","delay":0}]}
模板套用步骤:
(1)进入需要抓取的课程分类页面,例如:https://m.qlchat.com/wechat/page/recommend?shareSourceId=45x9dr16f9789c5ea&tagId=2000002423045279&userSourceId=befe8324fc6d#subItem
(2)导入模板
(3)替换 Start URL为要抓取的网页链接
(4)下拉到底部(合适位置)
(5)点击”data preview“
(6)全选 -> 复制 ->粘贴到 excel 文件里
(7)删除杂乱数据