2018年6月份后,阿里妈妈(淘宝联盟)修改了登录的一些细节,导致大量原来的淘宝客模拟登录抓取阿里妈妈订单的软件不可用再,登录后定期会自动掉线。
因此很多软件都要修改,需要检测是否掉线,如果掉线则需要再自动登录,
这里是一个开发模拟登录会用到的接口,比如如何检测是否掉线的接口:
https://pub.alimama.com/report/getTbkPaymentDetails.json?startTime=2017-05-22&endTime=2017-08-19&payStatus=&queryType=1&toPage=1&perPageSize=20&total=&t=1503223605295&pvid=&_tb_token_=pTK7Mfldfvq&_input_charset=utf-8
https://login.taobao.com/member/login.jhtml?style=mini&newMini2=true&from=alimama&redirectURL=http%3A%2F%2Flogin.taobao.com%2Fmember%2Ftaobaoke%2Flogin.htm%3Fis_login%3d1&full_redirect=true
http://pub.alimama.com/common/getUnionPubContextInfo.json
如果掉线了,返回的json数据是:
{"data":{"loginUrlPrefix":"http://www.alimama.com/member/login.htm?forward=","env":"product","noLogin":true,"ip":"112.53.64.182"},"info":{"message":null,"ok":true},"ok":true,"invalidKey":null}
如果在线,返回的json数据是:
另附几个有用的接口:{"data":{"imgUrlPrefix":"//img.alicdn.com/tfscom","loanLimit":0,"memberid":13387364,"tkMemberRank":3,"newVersion":1,"hasPubPermission":"1","env":"product","avatar":"//img.alicdn.com/bao/uploaded/i4/T1EqLjXnJgXXb1upjX.jpg","mmNick":"wangxukun","ip":"112.53.64.180"},"info":{"message":null,"ok":true},"ok":true,"invalidKey":null}
1.获取商品详情H5页面接口
https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?data=%7B"itemNumId"%3A"10031645140"%7D&qq-pf-to=pcqq.group
2.获取淘宝宝贝详情图片的接口
https://hws.m.taobao.com/cache/mtop.wdetail.getItemDescx/4.1/?data=%7Bitem_num_id%3A"40545413689"%7D&type=jsonp&dataType=jsonp
3.阿里妈妈超级搜索接口
https://pub.alimama.com/items/search.json?q=连衣裙&_t=1504343936005&toPage=1&dpyhq=1&auctionTag=&perPageSize=40&shopTag=yxjh%2Cdpyhq&t=1504343953946&_tb_token_=1z542p7H7yq&pvid=10_118.206.186.134_602_1504343947270