抓取网易严选分类列表

模板 tesths 2年前 (2019-03-10) 1183次浏览 0个评论

抓取网易严选分类列表

 

1、 数据字段

  • 大分类
  • 大分类链接
  • 小分类
  • 介绍
  • 物品名称
  • 价格
  • 细节说明
  • 备注

2、结果示例截图

抓取网易严选分类列表

3、sitemap json

{"_id":"you163category","startUrl":["http://you.163.com/item/list?categoryId=1005000&_stat_area=nav_2"],"selectors":[{"id":"element","type":"SelectorElement","parentSelectors":["link"],"selector":"div.m-Level2Category","multiple":true,"delay":0},{"id":"type","type":"SelectorText","parentSelectors":["element"],"selector":"span.name","multiple":false,"regex":"","delay":0},{"id":"intro","type":"SelectorText","parentSelectors":["element"],"selector":"div.hd p.desc","multiple":false,"regex":"","delay":0},{"id":"item-element","type":"SelectorElement","parentSelectors":["element"],"selector":"div.m-product","multiple":true,"delay":0},{"id":"name","type":"SelectorText","parentSelectors":["item-element"],"selector":"a span:nth-of-type(3)","multiple":false,"regex":"","delay":0},{"id":"price","type":"SelectorText","parentSelectors":["item-element"],"selector":"span span:nth-of-type(2)","multiple":false,"regex":"","delay":0},{"id":"detail","type":"SelectorText","parentSelectors":["item-element"],"selector":"p.desc","multiple":false,"regex":"","delay":0},{"id":"remark","type":"SelectorText","parentSelectors":["item-element"],"selector":"div.hd a div.colorNum","multiple":false,"regex":"","delay":0},{"id":"image","type":"SelectorImage","parentSelectors":["item-element"],"selector":"div.hd a div:nth-child(2) img","multiple":false,"delay":0},{"id":"link","type":"SelectorLink","parentSelectors":["_root"],"selector":"li.yx-cp-tabNav-item:nth-of-type(n+2) a.yx-cp-topLevel","multiple":true,"delay":"2000"}]}

喜欢 (2)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址