@jzp113
2019-04-24T09:49:42.000000Z
字数 937
阅读 1277
api 逆向
1.全量获取(count过大可能每次请求数据不一样)
https://i.snssdk.com/api/feed/profile/v1/?category=profile_all&visited_uid=1886674700&count=10
替换uid、count
2.增量获取
https://i.snssdk.com/api/feed/profile/v1/?category=profile_all&visited_uid=1886674700&offset=0
替换uid、count、返回的offset
function token(n, e, i, t) {for (var o = "sptoken", a = "", c = 1; c < 4; c++) {o += arguments[c];}for (var c = 0; c < o.length; c++) {var r = 10 ^ o.charCodeAt(c);a += String.fromCharCode(r)}return a}
Get方法'https://www.yidianzixun.com/home/q/news_list_for_channel?channel_id=m212852&cstart=0&cend=10&infinite=true&refresh=1&__from__=pc&multi=5&_spt=yz~eaodg8;82?8:;:'headers'Referer':'https://www.yidianzixun.com/channel/m212852?share_display_style=&utk=dxy4qi0v&appid=pro&ver=4.9.4.4&f=ios&s=3','X-Requested-With': 'XMLHttpRequest','User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36'
yz~eaodg8;82?8:;: = token('','m212852',0,10)
