当前位置:   article > 正文

快手

快手 主页 api
import requests
import urllib.request
import json
#@url="http://api.gifshow.com/rest/n/magicFace/photograph?mod=OPPO(R7Plusm)&lon=0&country_code=cn&did=ANDROID_c52ff6fcfa276c1c&app=0&net=WIFI&oc=MYAPP&ud=756030030&c=MYAPP&sys=ANDROID_5.1.1&appver=5.4.4.5428&ftt=K-T-T&language=zh-cn&iuid=&lat=0&ver=5.4"
url="http://api.ksapisrv.com/rest/n/feed/profile2?mod=OPPO(R7Plusm)&lon=117.45042&country_code=cn&did=ANDROID_c52ff6fcfa276c1c&app=0&net=WIFI&oc=MYAPP&ud=756030030&c=MYAPP&sys=ANDROID_5.1.1&appver=5.4.4.5428&ftt=K-T-T&language=zh-cn&iuid=&lat=38.867574&ver=5.4"
headers={
    'X-REQUESTID':'928405',
'User-Agent':'kwai-android',
'Connection':'keep-alive',
'Accept-Language':'zh-cn',
'Content-Type':'application/x-www-form-urlencoded',
'Content-Length':'299',
'Host':    'api.ksapisrv.com',
'Accept-Encoding':'gzip'
}

data={
    'token':'6582742000a24a9ea50703162170bc5f-756030030',
    'user_id':'12501365',
    'lang':'zh',
    'count':'30',
    'privacy':'public',
    'referer':'ks://profile/12501365/-1/-1/8,2',
    '__NStoken':'cc245624d01d384642201c9fd7b62aa1e38f50055a258403be9ef7ae5607b7f7',
    'client_key':'3c2cd3f3',
    'os':'android',
    'sig':'93a3ab352ed2ead1eadf4d03e792d5af'
}
r=requests.post(url,data=data,headers=headers)
json=json.loads(r.text)
print(json)

#urllib.request.urlretrieve(url,'344434.mp4')

 

转载于:https://www.cnblogs.com/realmonkeykingsun/p/8039959.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/238890
推荐阅读
相关标签
  

闽ICP备14008679号