[关闭]
@jzp113 2019-04-24T09:49:42.000000Z 字数 937 阅读 1057

今日头条,一点资讯量化数据

api 逆向


今日头条

1.全量获取(count过大可能每次请求数据不一样)

  1. https://i.snssdk.com/api/feed/profile/v1/?category=profile_all&visited_uid=1886674700&count=10

替换uid、count

2.增量获取

  1. https://i.snssdk.com/api/feed/profile/v1/?category=profile_all&visited_uid=1886674700&offset=0

替换uid、count、返回的offset

一点资讯

  1. function token(n, e, i, t) {
  2. for (var o = "sptoken", a = "", c = 1; c < 4; c++) {
  3. o += arguments[c];
  4. }
  5. for (var c = 0; c < o.length; c++) {
  6. var r = 10 ^ o.charCodeAt(c);
  7. a += String.fromCharCode(r)
  8. }
  9. return a
  10. }
  1. Get方法
  2. '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:;:'
  3. headers
  4. 'Referer':'https://www.yidianzixun.com/channel/m212852?share_display_style=&utk=dxy4qi0v&appid=pro&ver=4.9.4.4&f=ios&s=3',
  5. 'X-Requested-With': 'XMLHttpRequest',
  6. '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'
  1. yz~eaodg8;82?8:;: = token('','m212852',0,10)
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注