一、获取服装标题信息
先复制这个标题:“加肥加大码内搭打底衫T上衣服秋衣潮男装卫衣”
在源代码中找到(如下):注意不能只找一个!
"title":"春季宽松长袖t恤男士加肥加大码内搭打底衫T上衣服秋衣潮男装卫衣",
"raw_title":"2019秋季猫咪卡通印花长袖t恤男青少年","pic_url":"//g-search1.alicdn.com/img/bao/uploaded/i4/imgextra/i1/116602634/O1CN0129cvZE1VKPoCT1aIQ_!!0-saturn_solar.jpg","detail_url":"https://click.simba.taobao.com/cc_im?p\u003d%B7%FE%D7%B0\u0026s\u003d478535496\u0026k\u003d557\u0026e\u003dKVz5NyFMTIbdZqK8UYtDaMbQ1letbBl5rxM5oI1LIda9fZoBqdhZmAz3rh7kXlJdy9%2Bv%2BGDyvp3SrIzjUiHQP3ZLRHdOD0YdrrpUjLBk8JZGkXzexh%2FwcJwPoK76mE%2FECf0BbXKQxysA7NkzCaWPRxvlrYvknUJR%2FCWPB64wAxZCtf1VZk4M2RvrzEUeH8KAaTNQ0ihK1F6MKDU8NWIYt7u7YMaoGa9Oc%2BaJ6HvpxmlYQKdUA3tIG9yxB7fNP4sBrUmooXp%2BZcgQ6e9jE5VuNzwuHyuUep70r6av7%2Fr4InpF0F%2BnqwPTRfyGAcv1sPSN3zlVRn9QAQdDNE58v7Z%2BFvH2839KEaLTj%2FYalTUgjcU4syfdkgvXiarKOCHdM43WMksuoJ8fPcCVk7Cqy9YWTelRb84uAvjppa7%2FSJ4CKUV%2BtiVpGTFzYY5C7OwrQH4K6H%2Bt2C34aGKfgt5Q7RH9AIJ7etvf999WMMYsakmxRsxKiywNM7DVyAC5jYLEqaoqlJGJwT%2BKL3ZM%2Bv5uHKmzwayhFw5WAexFDnsBk57%2BXYk%3D","view_price"
我们再找一个(不要嫌我啰嗦,爬虫就是要这样严谨一些)
在复制这个标题:“款中山装青年中国风唐装古风古装夹克外套春季汉服”
在源代码中找到(如下):这下我们发现,源代码中有两段一样的东西
"title":"麒麟刺绣套装男款中山装青年中国风唐装古风古装夹克外套春季汉服",
"raw_title":"麒麟刺绣套装男款中山装青年中国风唐装古风古装夹克外套春季汉服","pic_url":"//g-search3.alicdn.com/img/bao/uploaded/i4/i1/2144120484/O1CN01lyDThL1FRiGir64iU_!!0-item_pic.jpg","detail_url":"//detail.tmall.com/item.htm?id\u003d600041600239\u0026ad_id\u003d\u0026am_id\u003d\u0026cm_id\u003d140105335569ed55e27b\u0026pm_id\u003d\u0026abbucket\u003d8"
title是上一个有的,下一个有的是raw_title:这时我们观察上一个是广告,不是产品信息,所以咱们想要标题信息要title和raw_title后面的都可以,这里