回应率
结果示例图:
模板:
{"_id":"alibaba-fenlei","startUrl":
["https://www.alibaba.com/catalog/packaging-machine_cid100009422?spm=a2700.galleryofferlist.0.0.63717b5azRVrsA&page=1","https://www.alibaba.com/catalog/packaging-machine_cid100009422?spm=a2700.galleryofferlist.0.0.485770d7Yg2MM0&page=2","https://www.alibaba.com/catalog/packaging-machine_cid100009422?spm=a2700.galleryofferlist.0.0.21a67b5aOMyo9z&page=3"],"selectors":[{"id":"info","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"div.organic-offer-wrapper","multiple":true,"delay":"2000"},{"id":"title","type":"SelectorLink","parentSelectors":
["info"],"selector":"a.organic-gallery-title","multiple":false,"delay":0},{"id":"price","type":"SelectorText","parentSelectors":
["info"],"selector":"p.gallery-offer-price","multiple":false,"regex":"","delay":0},{"id":"company","type":"SelectorText","parentSelectors":
["info"],"selector":"a.organic-gallery-offer__seller-company","multiple":false,"regex":"","delay":0},{"id":"address","type":"SelectorText","parentSelectors":
["info"],"selector":"span.seller-tag__country","multiple":false,"regex":"","delay":0},{"id":"time","type":"SelectorText","parentSelectors":
["info"],"selector":"span.seller-tag__year","multiple":false,"regex":"","delay":0},{"id":"feedback","type":"SelectorText","parentSelectors":
["info"],"selector":"div.organic-gallery-offer-section__reviews","multiple":false,"regex":"","delay":0}]}
模板套用步骤:
(1)进入需要抓取的商品分类页面,例如:https://www.alibaba.com/catalog/packaging-machine_cid100009422?spm=a2700.galleryofferlist.0.0.4b297b5aVKJ0QK&page=1
(2)导入模板
(3)替换 Start URL为要抓取的网页链接(抓取多页需要增加多个 Start URL)
(4)开始抓取