其他分享
首页 > 其他分享> > 快手

快手

作者:互联网

import re,sys,time,requests
def headx(aab):
    ab=[]
    ax1=aab.split('\n')
    for i in ax1:
        ax2=i.split(': ')
        ab.append((ax2[0],ax2[1]))
    tt=dict(ab)
    return tt
ab='''Host:v2-cty05.kwaicdn.com
Connection:keep-alive
Range:bytes=0-819199
user-agent:Hodor/NULL/878090sUpWs7vfa6DMrMOaNI7L6FWUuq/cache
Request-Id:878090sUpWs7vfa6DMrMOaNI7L6FWUuq
Accept-Encoding:identity
X-Client-Info:model=Redmi Note 8 Pro;os=Android;nqe-score=26;network=WIFI;signal-strength=4;'''
##url="http://v2-cty05.kwaicdn.com/ksc1/WyO26L9VkrCCICHA2qxByVq6J9ZUolfgQCJeCL__WiJr6BKoMbf6vCmS8RpNZU1VRQddG-1yZQ4a4x5uersqTi1rIgrU3yyeGO9wkqZVdmcgxfa5dpBm0QjOn_3rbvspgs1rE5iUiYqlm_1chbbqE2VPhb0ktoLq6arDhGCPoYi2kk9aUsUTgWhnGxY4HW94.mp4?pkey=AAU0YDo60R_Se7OhFhN87ATmRNax1snrUtybCtDPOt8YH1z3jcRvAp9IC8pFBN3A9_6575IyT4h1-7woYbzifNfNJyBqmrsYrZEEptMZulUee7wyMcZuEWpbkJno-p33Vr0&tag=1-1651703151-h-0-3atxedsk9p-c18046dfc81269b7&clientCacheKey=3xghkva3s5ruq4k_b.mp4&di=7179d5f6&bp=10051&tt=b&ss=vp"
##head1=headx(ab)
##head1["user-agent"]="a/com.kuaishou.nebula/10.2.50.3105/4.8.9.12.3460.8969e1e/886615a1VcYz044cLVqaRRMmGXVBNrrN/916087jhw6vEOtlWDqo5Wqv66A4iYx6P/cache"
##aa=requests.get(url,headers=head1)
##with open('aa.mp4',mode='wb') as f:
##    f.write(aa.content)
abb='''Host: gdfp.gifshow.com
Content-Length: 1123
Content-Type: application/json; charset=UTF-8
Cookie: userId=2161156699;platform=ANDROID_PHONE;channel=XIAOMI;mod=Xiaomi%28Redmi+Note+8+Pro%29;globalId=DFPB2D9DB43F5AB07B1AABA1DA6F463E62236DB53AAF14EB0F8A2AB99D8D9D46;sysver=ANDROID_10;rdid=ANDROID_44be5172df853034;did_tag=7'''
head2=headx(abb)
url1="http://gdfp.gifshow.com/kuaishou/temp/data/s?secretkey=117d05716732fb8835c5b32cdc6c5e9e&sign=bb10774d112e8553e9b1a9f9532fb31e&appkey=20001&timestamp=1651703159"
aa=requests.post(url1,headers=head2)

 

标签:aa,ab,快手,tt,##,mp4,com
来源: https://www.cnblogs.com/xkdn/p/16223220.html