User
Page
Request Url
baseurl = "http://ff.dayu.com/author/1002/{uid}"
example_url = "http://ff.dayu.com/author/1002/7f5ce0968e384eda81a1d637c9df0a04"
Request method
Get
Headers
headers = {
'Host':'iflow.uczzd.cn',
'Content-Type':'application/json',
'Accept-Encoding':'gzip, deflate, sdch',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36',
}
Response
Json dataArticle
Page
Request url
http://ff.dayu.com/contents/{article_id}?biz_id=1002&_fetch_author=1
http://ff.dayu.com/contents/282433764834673664?biz_id=1002&_fetch_author=1
Request method
Get
headers
headersParas
These two paras are nessesary.
paras
Response
Response body segement author infoArticle List
http://ff.dayu.com/contents/author/7f5ce0968e384eda81a1d637c9df0a04?biz_id=1002&_size=100&_page=2&_order_type=published_at&status=1&fetch=1&uc_param_str=frdnsnpfvecpntnwprdssskt&=1540620999905
Page
Request url
# url format
url = "http://ff.dayu.com/contents/author/{uid}"\
# example
url = "http://ff.dayu.com/contents/author/10b021b629f841ae8bd1c33ec63c4f5f"
Request method
Get
Request headers
headers = {
'Host': 'ff.dayu.com',
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:60.9) Gecko/20100101 Goanna/4.1 Firefox/60.9 PaleMoon/28.4.1',
'Accept-Encoding': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
}
Request parameters
# biz_id may be catelog
# _size: the number of object each page, max value 100
# _page: page number
# _order_type: order type
# status and _fecth fixed
params = {
'biz_id': '1002',
'_size': '20',
'_page': '1',
'_order_type': 'published_at',
'status': '1',
'_fetch': '1',
}
Response
深度截图_选择区域_20190409142727.pngHeadline Content
This page can only be previewed in UC browser, so I use Fidder to capture packages and analysis packages.
Page
RecommandCaptured data (RAW Header)
GET /iflow/api/v1/channel/100?method=his&ftime=1554782740329&recoid=2931255839960049823&count=10&content_ratio=0&content_length=2048&app=uc-iflow&no_op=0&auto=0&_tm=1554792636678&uc_param_str=dnnivebichfrmintcpgidsudsvmedizbssnw&user_tag=bTkwBAr7cbO%2BOu3RZA%3D%3D&sp_gz=1&ssign=AAP0FovpTsB0DHfpiKKW3i6v2Kptpt%2FLJkW8l%2BkmvgldNHYFOR8vSCvfaKB7s%2FS4cEk%3D&dn=34246213619-287d20a2&nn=AAT3tTxd7%2FOK07o0%2F9XCqWsCnQ9IMhs5ZIs0ZwS5FiDObg%3D%3D&ve=11.0.4.846&bi=999&ch=&fr=android&mi=HUAWEI%20MLA-AL10&nt=2&pc=AAQ%2FJDdbUVTj%2FurM6xuCLCy3h0tYHPDkq%2B38tOTFKYE77I3733yQKduqXvVls4ne2RUD%2BR8m2ocPTtbq38si9zEV&gp=&ut=AASXCgkq2H%2Bwnk7pUg98WLqGiqP0iC1SenubMS7jI3e2xA%3D%3D&ai=AATIOjkF5L3td0fuOBPMJ%2FKSLJOsE8dnOPJ8Y9Vumy2cFw%3D%3D&sv=ucreleasex86&me=AARdviFlhYfUj0R%2FtkGVXTsr&di=30b49eccbbc54166&zb=&ss=720x1280&nw=&xss_enc=31 HTTP/1.1
Host: iflow.uczzd.net
Content-Type: application/json
Accept-Encoding: gzip
We found the number followed channel (100) is the category of content, contains these segments:
category.pngand we record all these categories code :
category_code | catetory |
---|---|
100 | 推荐 |
10016 | 视频 |
51830095 | 热点 |
179223212 | 娱乐 |
923258246 | 体育 |
10000 | 美食 |
10005 | 文玩 |
10006 | 职场 |
10007 | 科学探索 |
10008 | 星座 |
10012 | 动漫 |
10013 | 搞笑 |
1001932710 | 国际 |
10306 | NBA |
10308 | 新时代 |
10335 | 好货 |
10346 | 公益 |
1099189934 | 情感 |
1105405272 | 军事 |
1192652582 | 社会 |
1213442674 | 时尚 |
1404457531635 | 电影 |
1525483516 | 科技 |
169476544 | 游戏 |
1911322354 | 涨知识 |
1964289243 | 图片 |
1972619079 | 旅游 |
200 | 中山(猜测和地理位置有关) |
242677432 | 互联网 |
26325229 | 财经 |
323644874 | 汽车 |
408250330 | 育儿 |
472933935 | 健康 |
586710362 | 房产 |
674534 | 健身 |
681723207 | 教育 |
696724 | 商业 |
701104723 | 历史 |
701538712 | 国际足球 |
794794774 | 足球 |
835729 | 数码 |
90001 | 股票 |
90003 | 家居 |
90005 | 美容瘦身 |
Request url
baseurl = 'http://iflow.uczzd.cn/iflow/api/v1/channel/{category_code}'
Request header
headers = {
Host: iflow.uczzd.net
Content-Type: application/json
Accept-Encoding: gzip
}
Requests Parameters
All segement could be static and do not need to change.
{ '_tm': '1554792636678',
'ai': 'AATIOjkF5L3td0fuOBPMJ/KSLJOsE8dnOPJ8Y9Vumy2cFw==',
'app': 'uc-iflow',
'auto': '0',
'bi': '999',
'content_length': '2048',
'content_ratio': '0',
'count': '10',
'di': '30b49eccbbc54166',
'dn': '34246213619-287d20a2',
'fr': 'android',
'ftime': '1554782740329',
'me': 'AARdviFlhYfUj0R/tkGVXTsr',
'method': 'his',
'mi': 'HUAWEI MLA-AL10',
'nn': 'AAT3tTxd7/OK07o0/9XCqWsCnQ9IMhs5ZIs0ZwS5FiDObg==',
'no_op': '0',
'nt': '2',
'pc': 'AAQ/JDdbUVTj/urM6xuCLCy3h0tYHPDkq+38tOTFKYE77I3733yQKduqXvVls4ne2RUD+R8m2ocPTtbq38si9zEV',
'recoid': '2931255839960049823',
'sp_gz': '1',
'ss': '720x1280',
'ssign': 'AAP0FovpTsB0DHfpiKKW3i6v2Kptpt/LJkW8l+kmvgldNHYFOR8vSCvfaKB7s/S4cEk=',
'sv': 'ucreleasex86',
'uc_param_str': 'dnnivebichfrmintcpgidsudsvmedizbssnw',
'user_tag': 'bTkwBAr7cbO+Ou3RZA==',
'ut': 'AASXCgkq2H+wnk7pUg98WLqGiqP0iC1SenubMS7jI3e2xA==',
've': '11.0.4.846',
'xss_enc': '31'
We use this Params to request, and suprise~, we got a mess page, look like encoding problem. Look back to params, we found this one : xss_enc, try to request without this segment, and we got the json data. So, the final parameters is :
{ '_tm': '1554792636678',
'ai': 'AATIOjkF5L3td0fuOBPMJ/KSLJOsE8dnOPJ8Y9Vumy2cFw==',
'app': 'uc-iflow',
'auto': '0',
'bi': '999',
'content_length': '2048',
'content_ratio': '0',
'count': '10',
'di': '30b49eccbbc54166',
'dn': '34246213619-287d20a2',
'fr': 'android',
'ftime': '1554782740329',
'me': 'AARdviFlhYfUj0R/tkGVXTsr',
'method': 'his',
'mi': 'HUAWEI MLA-AL10',
'nn': 'AAT3tTxd7/OK07o0/9XCqWsCnQ9IMhs5ZIs0ZwS5FiDObg==',
'no_op': '0',
'nt': '2',
'pc': 'AAQ/JDdbUVTj/urM6xuCLCy3h0tYHPDkq+38tOTFKYE77I3733yQKduqXvVls4ne2RUD+R8m2ocPTtbq38si9zEV',
'recoid': '2931255839960049823',
'sp_gz': '1',
'ss': '720x1280',
'ssign': 'AAP0FovpTsB0DHfpiKKW3i6v2Kptpt/LJkW8l+kmvgldNHYFOR8vSCvfaKB7s/S4cEk=',
'sv': 'ucreleasex86',
'uc_param_str': 'dnnivebichfrmintcpgidsudsvmedizbssnw',
'user_tag': 'bTkwBAr7cbO+Ou3RZA==',
'ut': 'AASXCgkq2H+wnk7pUg98WLqGiqP0iC1SenubMS7jI3e2xA==',
've': '11.0.4.846',
}
Response
ResponseSearch Interface
http://zzd.sm.cn/iflow/api/v1/article/fsearch?uc_param_str=dnnivebichfrmintcpgieiwidsudpf&dn=34246213619-287d20a2&nn=AAT3tTxd7%2FOK07o0%2F9XCqWsCnQ9IMhs5ZIs0ZwS5FiDObg%3D%3D&ve=11.0.4.846&bi=999&fr=android&mi=HUAWEI%20MLA-AL10&nt=2&pc=AAQ%2FJDdbUVTj%2FurM6xuCLCy3h0tYHPDkq%2B38tOTFKYE77I3733yQKduqXvVls4ne2RUD%2BR8m2ocPTtbq38si9zEV&gp=AATf8b03D799URd1la3Wd1ocA3Ufn9jJVYy4353o6uhweg%3D%3D&wf=AAT%2FusDVFBpmDf56fHblX4%2B0&ut=AASXCgkq2H%2Bwnk7pUg98WLqGiqP0iC1SenubMS7jI3e2xA%3D%3D&ai=AATIOjkF5L3td0fuOBPMJ%2FKSLJOsE8dnOPJ8Y9Vumy2cFw%3D%3D&pf=151&zzd_from=webapp&app=webapp&is_h5=1&client_os=webapp&sn=3429661071603923733&page=1&size=20&source=&sid=&q=%E5%B0%8F%E7%B1%B3&scene=2&_=1554801318767&callback=jsonp1
Requests params
{ '_': '1554801318767',
'ai': 'AATIOjkF5L3td0fuOBPMJ/KSLJOsE8dnOPJ8Y9Vumy2cFw==',
'app': 'webapp',
'bi': '999',
'callback': 'jsonp1',
'client_os': 'webapp',
'dn': '34246213619-287d20a2',
'fr': 'android',
'gp': 'AATf8b03D799URd1la3Wd1ocA3Ufn9jJVYy4353o6uhweg==',
'is_h5': '1',
'mi': 'HUAWEI MLA-AL10',
'nn': 'AAT3tTxd7/OK07o0/9XCqWsCnQ9IMhs5ZIs0ZwS5FiDObg==',
'nt': '2',
'page': '1',
'pc': 'AAQ/JDdbUVTj/urM6xuCLCy3h0tYHPDkq+38tOTFKYE77I3733yQKduqXvVls4ne2RUD+R8m2ocPTtbq38si9zEV',
'pf': '151',
'q': '小米',
'scene': '2',
'size': '20',
'sn': '3429661071603923733',
'uc_param_str': 'dnnivebichfrmintcpgieiwidsudpf',
'ut': 'AASXCgkq2H+wnk7pUg98WLqGiqP0iC1SenubMS7jI3e2xA==',
've': '11.0.4.846',
'wf': 'AAT/usDVFBpmDf56fHblX4+0',
'zzd_from': 'webapp'}
Segment q is your keyword query.
Request headers
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36',
'Host':'zzd.sm.cn',
'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
'Accept-Encoding':'gzip, deflate',
'Accept-Language':'zh-CN,zh;q=0.9',
}
Comment
URL
[http://m.sp.uczzd.cn/iflow/api/v2/cmt/article/14259383920110042630/comments/byhot](http://m.sp.uczzd.cn/iflow/api/v2/cmt/article/14259383920110042630/comments/byhot)
New Article List
url
http://api.mp.uc.cn/api/v1/users/messages/wemedias/{uid}
params
uc_param_str: frdnpfvecpntgibiniprdswi
app: ucweb
sno: AAOsTls6E2Bobfr7HLugi9sD
max_pos: 1554892965814
size: 100
fr: android
dn: 34246213619-287d20a2
pf: 151
ve: 11.0.4.846
pc: AAQ/JDdbUVTj/urM6xuCLCy3h0tYHPDkq+38tOTFKYE77I3733yQKduqXvVls4ne2RUD+R8m2ocPTtbq38si9zEV
nt: 2
gp: AATf8b03D799URd1la3Wd1ocA3Ufn9jJVYy4353o6uhweg==
bi: 999
nn: AAT3tTxd7/OK07o0/9XCqWsCnQ9IMhs5ZIs0ZwS5FiDObg==
pr: UCMobile
ut: AASXCgkq2H+wnk7pUg98WLqGiqP0iC1SenubMS7jI3e2xA==
wf: AAT/usDVFBpmDf56fHblX4+0
网友评论