今日头条app数据包分析

数据包分析

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 信息流列表
今日头条app数据包分析_第1张图片

使用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”},

你可能感兴趣的:(爬虫,今日头条,wireshark,fiddler,app,手机)