今日頭條app資料包分析

雲定止水發表於2017-06-13

資料包分析

wireshark+Connectify Hotspot(也可以是其他wifi共享工具),

參考:http://jingyan.baidu.com/article/19192ad85ca947e53e5707cd.html
如果不想用安卓機的話,也可以使用網易MuMu模擬器安裝一個應用。

分析結果找到以下幾個網址:
1) http://mon.snssdk.com/monitor/settings/?latitude=23.131756666666668&longitude=113.25902833333333&city=%E5%B9%BF%E5%B7%9E&iid=11070718939&device_id=36790617024&ac=wifi&channel=2345005&aid=13&app_name=news_article&version_code=592&version_name=5.9.2&device_platform=android&ab_version=134938%2C125477%2C127192%2C126061%2C133260%2C122834%2C130106%2C126065%2C123479%2C134679%2C134748%2C134128%2C135599%2C134291%2C126072%2C135625%2C125174%2C130804%2C135860%2C135298%2C133022%2C126059%2C109975%2C132482%2C134951%2C131005%2C133626%2C135674%2C133477%2C122948%2C135809%2C134436%2C135290%2C131207%2C114338%2C134070&abflag=3&ssmix=a&device_type=MuMu&device_brand=Android&language=zh&os_api=19&os_version=4.4.4&uuid=008796748153952&openudid=91db038a1a99e5bd&manifest_version_code=592&resolution=1280*720&dpi=240&update_version_code=5923&_rticket=1497233365140 有各個子域名

2) http://lf.snssdk.com/api/2/article/v35/stream/?offset=40 資訊流列表
v35_stream

使用Fiddler

fiddler的使用參考:https://ask.hellobi.com/blog/Wakingup88688/7684
Fiddler——PC上實現手機的抓包
How to proxy your iOS or Android device to Fiddler running on a Windows machine

今日頭條的資料分析可以參考:
https://github.com/jokermonn/-Api/blob/master/Todaynews.md
https://github.com/hrscy/TodayNews/blob/master/TodayNews/Classes/Main(%E4%B8%BB%E8%A6%81)/Tools/YMNetworkTool.swift
https://github.com/liubo0621/headlines_today

實際使用Fiddler連續進行監聽,觀察引數有何不一樣
首次進入一個頻道
GET /api/news/feed/v54/?ssmix=a&version_code=6.1.6&resolution=640*1136&ab_client=a1,f2,f7,e1&ac=WIFI&LBS_status=authroize&city=&concern_id=6286225228934679042&count=20&cp=599230Eb96BE1q1&detail=1&image=1&language=zh-Hans-CN&last_refresh_sub_entrance_interval=1497275361&loc_mode=1&min_behot_time=1497274488&refer=1&strict=0&tt_from=pull
在該頻道內繼續下翻
GET /api/news/feed/v54/?ssmix=a&version_code=6.1.6&resolution=640*1136&ab_client=a1,f2,f7,e1&ac=WIFI&LBS_status=authroize&category=news_finance&city=&concern_id=6215497900357585410&count=20&cp=5b9835EaA1059q1&detail=1&image=1&language=zh-Hans-CN&last_refresh_sub_entrance_interval=373&loc_mode=1&max_behot_time=1497263230&refer=1&strict=0&tt_from=load_more

分析PC端的網頁,對於每一條資訊項,如果是廣告,會有{“tag”:”ad”}和具體的{“ad_id”,否則tag顯示的是實際的頻道,如{“tag”:”news_sports”},

相關文章