單品優惠券炸了

剛剛準備要寫一個如何獲取單品優惠券的文章, 剛恰好就出問題.html

看來聯盟已經出手了.json

以前的各類查券api:api

淘鵲橋:http://vip.taoqueqiao.com/?mod=inc&act=pluginweex

輕淘客:http://www.qingtaoke.com/api/UserPlan/app

淘客助手:http://zhushou3.taokezhushou.com/api/v1/coupons_base/post

有的activityid還能查, 有的沒數據了.jsonp

 

可是查到activityid之後呢, 獲取不了優惠券的額度了. ui

直接跳轉到以下相似頁面:spa

https://market.m.taobao.com/apps/aliyx/coupon/detail.html?wh_weex=true&activity_id=0a7ff37a157c4debb4ec47357053bf45&seller_id=16525185243d

關鍵是這個頁面還須要登陸淘寶帳戶才能看.

好吧, 你牛逼,  抓包看看:

好比咱們找這個: https://detail.tmall.com/item.htm?id=537669879642&ali_trackid=2:mm_122507522_22754993_75298166:1493101339_2k6_875220387&spm=a311n.8189758%2Fa.90200000.1.1QjfiC&pvid=qhkj_dtkp

淘鵲橋的接口還能返回一個優惠券的地址: 

http://shop.m.taobao.com/shop/coupon.htm?seller_id=2927100714&activity_id=6453d7d9eff84c08a6eacf80f7963fe3

訪問以後發生了跳轉: https://market.m.taobao.com/apps/aliyx/coupon/detail.html?wh_weex=true&activity_id=6453d7d9eff84c08a6eacf80f7963fe3&seller_id=2927100714

而後這個頁面的js

  <script>
    define('@page/data', function(require, exports, module) {
      var metaData = {
        charset:'utf-8',
        title:'卡券領取頁',
        spma:'a3113',
        spmb:'8592669',
        env: 'production'
      };

      var moduleData = {};

      module.exports = {
        metaData: metaData,
        moduleData: moduleData
      };
    });
  </script>

還會進入下一個頁面, 判斷H5帳戶登陸令牌

https://api.m.taobao.com/h5/mtop.user.getusersimple/1.0/?appKey=12574478&t=1493105418505&sign=4f6e938650c68854b27b2dc5e3d7e398&api=mtop.user.getUserSimple&v=1.0&H5Request=true&type=jsonp&dataType=jsonp&callback=mtopjsonp1&data={"isSec":0}

接着主API出場:

https://api.m.taobao.com/h5/mtop.taobao.couponmtopreadservice.findshopbonusactivitys/2.0/?appKey=12574478&t=1493101788745&sign=6f5637b9f3f00e5f17cfdf7dc1142891&api=mtop.taobao.couponMtopReadService.findShopBonusActivitys&v=2.0&AntiFlood=true&ecode=1&type=jsonp&dataType=jsonp&callback=mtopjsonp2&data={"uuid":"6453d7d9eff84c08a6eacf80f7963fe3","sellerId":"2927100714","queryShop":true}

mtopjsonp3({"api":"mtop.taobao.couponMtopReadService.findShopBonusActivitys","v":"2.0","ret":["SUCCESS::調用成功"],
"data":{"haveNextPage":"false","needInterrupt":"false","module":[{"couponId":"3199070405","sellerId":"2927100714",
"activityId":"952395031","uuid":"6453d7d9eff84c08a6eacf80f7963fe3","activityName":"挖球器","startFee":"2400","discount":"1500",
"startTime":"2017-04-25 00:00:00","endTime":"2017-04-28 23:59:59","transfer":"false","totalCount":"10000","appliedCount":"316",
"personLimitCount":"1","shopNick":"lhopan歐烹嘉路專賣店","couponType":"1","status":"1","intervalDays":"0","intervalHours":"0",
"useIntervalMode":"false","defaultValidityCopywriter":"2017.04.28前有效","currencyUnit":"¥"}],"error":"false","totalCount":"0"}})

看到沒  這個纔是最後的王牌.  可是你妹  怎麼沒有金額啊.

繼續觀察,  此路不通, 確定有其餘辦法.

下面這個就是

https://uland.taobao.com/cp/coupon?ctoken=&activityId=6453d7d9eff84c08a6eacf80f7963fe3&pid=你的pid&itemId=537669879642

返回:

{"success":true,"message":"","result":{"retStatus":0,"startFee":24.0,"amount":15.0,
"shopLogo":"//img.alicdn.com/bao/uploaded//13/9c/TB1dfknKVXXXXalXVXXSutbFXXX.jpg",
"shopName":"lhopan歐烹嘉路專賣店","couponFlowLimit":false,"effectiveStartTime":"2017-04-25 00:00:00",
"effectiveEndTime":"2017-04-28 23:59:59","couponKey":"p8TjmSoxf3niRzMiytwfIc37WbQbD49%2FG2XGmmuYhszkmnTDkZM0zwQWVxa0er5%2BIwwgcQkzMAA%3D",
"pid":null,"item":{"clickUrl":"//s.click.taobao.com/t?e=m%3D2%26s%3DNTCchWASTXxw4vFB6t2Z2ueEDrYVVa64K7Vc7
tFgwiHjf2vlNIV67vUj%2BsnOyCQ%2FNIp4fcwrAVlQRvrLfl9ssIjxmLBineQgK4Ds3bJ65Ml3AUtGb96TYBjSE%2BCP6c%2B0iWg04s7
kuUBc7gK%2BGrPaFuVna5PZHqa3UO5fx02vaF2Nbt4WVvegOjb7gI0gg0tk3Mw4m5x3SsiqglDgwvfm3cYOae24fhW0","picUrl":"//
gaitaobao4.alicdn.com/tfscom/i2/TB1pPQsMVXXXXbgapXXXXXXXXXX_!!0-item_pic.jpg","title":"歐烹可彈式水果挖球器
不鏽鋼雪糕勺西瓜挖勺子 冰淇淋球冰激凌勺","reservePrice":59.9,"discountPrice":29.9,"biz30Day":332,"tmall":"1",
"postFree":"1","itemId":537669879642,"commission":null,"shareUrl":"//uland.taobao.com/coupon/edetail?
e=C8l058ZTV2oGQASttHIRqSBd0NXb0QU0wa2mL29HMYGAnVXUwZx8Io1y1Nik4Jvmm541RZBEEpc7GfYIFjjYie65Wv%2B3SdUbD
fqEFBOhTcwLdUedZ7swJiBCZdB3FugJrbZrFqD%2B0cnsKWRtCDVzIiUzVkkdwsIm"}}}

拿走不謝

 

下節預告  解碼淘口令

公衆號已經修正, 歡迎查詢對比

相關文章
相關標籤/搜索