抓取当当分类图书列表
1、 数据字段
- 名称
- 详情链接
- 价格
- 原价
- 折扣
- 作者
- 发布日期
- 出版社
- 标签
- 评论数
- 内容简介
2、结果示例截图
3、sitemap json
{"_id":"dangdang","startUrl":["http://category.dangdang.com/pg[1-5]-cp01.22.14.00.00.00.html"],"selectors":[{"id":"element","type":"SelectorElement","parentSelectors":["_root"],"selector":".bigimg li","multiple":true,"delay":0},{"id":"name","type":"SelectorLink","parentSelectors":["element"],"selector":".name a","multiple":false,"delay":0},{"id":"price","type":"SelectorText","parentSelectors":["element"],"selector":"span.search_now_price","multiple":false,"regex":"","delay":0},{"id":"originalprice","type":"SelectorText","parentSelectors":["element"],"selector":"span.search_pre_price","multiple":false,"regex":"","delay":0},{"id":"discount","type":"SelectorText","parentSelectors":["element"],"selector":"span.search_discount","multiple":false,"regex":"","delay":0},{"id":"author","type":"SelectorText","parentSelectors":["element"],"selector":"a[name='itemlist-author']","multiple":false,"regex":"","delay":0},{"id":"date","type":"SelectorText","parentSelectors":["element"],"selector":".search_book_author span:nth-of-type(2)","multiple":false,"regex":"","delay":0},{"id":"publish","type":"SelectorText","parentSelectors":["element"],"selector":"a[name='P_cbs']","multiple":false,"regex":"","delay":0},{"id":"tag","type":"SelectorText","parentSelectors":["element"],"selector":"span.new_lable","multiple":false,"regex":"","delay":0},{"id":"comment","type":"SelectorText","parentSelectors":["element"],"selector":"a.search_comment_num","multiple":false,"regex":"","delay":0},{"id":"content","type":"SelectorText","parentSelectors":["element"],"selector":"p.detail","multiple":false,"regex":"","delay":0}]}