回应率/销量/评分
结果示例图:
模板:
{"_id":"alibaba-search","startUrl":["https://www.alibaba.com/products/reverse_osmosis_plant.html?spm=a2700.7724838.0.0.723357e9XwqD3X&IndexArea=product_en&page=3","https://www.alibaba.com/products/reverse_osmosis_plant.html?spm=a2700.7724838.0.0.34b357e9Q7u3t0&IndexArea=product_en&page=2","https://www.alibaba.com/trade/search?fsb=y&IndexArea=product_en&CatId=&SearchText=reverse+osmosis+plant&viewtype=&tab="],"selectors":
[{"id":"info","type":"SelectorElementScroll","parentSelectors":["_root"],"selector":"div.organic-list-offer-inner","multiple":true,"delay":"2000"},{"id":"name","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":"address","type":"SelectorText","parentSelectors":
["info"],"selector":"a.organic-list-offer__seller-company","multiple":false,"regex":"","delay":0},{"id":"sells","type":"SelectorText","parentSelectors":
["info"],"selector":"div.organic-list-offer-right__section2","multiple":false,"regex":"","delay":0}]}
模板套用步骤:
(1)进入需要抓取的搜索结果页面,例如:https://www.alibaba.com/products/reverse_osmosis_plant.html?spm=a2700.7724838.0.0.112e57e979ItZf&IndexArea=product_en&page=1
(2)导入模板
(3)替换 Start URL为要抓取的网页链接(抓取多页需要增加多个 Start URL)
(4)开始抓取