店铺名字
结果示例图:
模板:
{"_id":"jd-fenlei","startUrl":
["https://list.jd.com/list.html?cat=9987,653,655&page=[1-5]&sort=sort_rank_asc&trans=1&JL=6_0_0&ms=10#J_main"],"selectors":[{"id":"info","type":"SelectorElement","parentSelectors":
["_root"],"selector":"div.gl-i-wrap","multiple":true,"delay":"3000"},{"id":"name","type":"SelectorLink","parentSelectors":
["info"],"selector":".p-name a","multiple":false,"delay":0},{"id":"price","type":"SelectorText","parentSelectors":
["info"],"selector":"div.p-price","multiple":false,"regex":"","delay":0},{"id":"comments","type":"SelectorText","parentSelectors":
["info"],"selector":"div.p-commit","multiple":false,"regex":"","delay":0},
{"id":"store-name","type":"SelectorText","parentSelectors":
["info"],"selector":"div.p-shop","multiple":false,"regex":"","delay":0}]}
模板套用步骤:
(1)进入需要抓取的商品分类页面,例如:https://list.jd.com/list.html?cat=9987,653,655&page=1&sort=sort_rank_asc&trans=1&JL=6_0_0#J_main
(2)导入模板
(3)替换 Start URL为要抓取的网页链接,(抓取多页需修改 Start URL 里的页码数)
(4)开始抓取