JoeanAmier / KS-Downloader

快手无水印视频/图片下载工具
GNU General Public License v3.0
264 stars 60 forks source link

求问这是为什么 #20

Closed 2857584289 closed 1 month ago

2857584289 commented 1 month ago

{"result":50,"ab8d":true,"error_msg":"签名验证失败"} 代码: APP_USERAGENT = ( "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) " "Version/16.6 Mobile/15E148 Safari/604.1") headers2 = { "Accept": "/", "Accept-Encoding": "/",

"Accept-Language": "en,ja;q=0.9,zh-CN;q=0.8,zh-HK;q=0.7,zh;q=0.6",

    "Content-Type": "application/json",
    # "Origin": "https://v.m.chenzhongtech.com",
    "Host": "m.gifshow.com",
    "Origin": "https://m.gifshow.com",
    "Pragma": "no-cache",
    "Cache-Control": "no-cache",
    "Connection": "keep-alive",
    "Referer":"https://m.gifshow.com",
    # "Sec-Fetch-Dest": "empty",
    # "Sec-Fetch-Mode": "cors",
    # "Sec-Fetch-Site": "same-origin",
    # "Sec-Fetch-User": "?1",
    "User-Agent": APP_USERAGENT,
    "Cookie":"didv=1728654200000; soft_did=1619580708547; kuaishou.live.web_ph=5a79e07e3d1334b4f7ab4c3cb2f3083c05a7;kuaishou.live.web_st=ChRrdWFpc2hvdS5saXZlLndlYi5zdBKgAQveBX-0r5OMm68vDYll8QG7gyMlUUPdtOSpaqtavL6Qw1D26JJH0aD1tWNsx5XxONOMON4CBR1SWM-cv-Th8WCAr5hWd0CXStdn78XXxugoV42sbClE2MeUoLQQZ9YK4HtzonY5u9RKPizqYKRzwA-6PI_E4MRYx-8lxCVYs9CV_DNsDC-JiBxO8IYcRkmYES_qJ8dYcbU8VCx0Xrs4sUwaEiTUdhIhLkqeuKi4MmqrjKj9xSIg-OHO08yajX3p757nvOkD34TtZepicAE5Lbg3gIfVQWQoBTAB;passToken=ChNwYXNzcG9ydC5wYXNzLXRva2VuErABw8KF_G2-FYONifMbAYq4StEEgV5YuxA9myP9qd2aGK9yEegAoIl4jJ1lPC-_wkC31A1I53MZqBtHLfSHWK2kQLXOb6U4z3BIMby0Bk2_zpSCbPNz_zSUeLaq4A1rSI0ySuuWYHPyWymJgYmF9nMXQkGf8BWBHUVKm6NgSG92MjfQ65-ix-Phwuucx0eVX3RGSRP1jYcFtDgQl3Ls4UytD4crpUH2KTpzKiZ0IXcYQaEaEonOVGjugEBgsaTjyGKjhDlOoyIgNJiTjGdL84rH4kD5gsFZU7nNTgGu7M7XSb11GDBKklgoBTAB;userId=3046033579; userId=3046033579; userId=3046033579; client_key=65890b29; clientid=3;did=web_f9970d68bc88cad83f4c41f7d07fe4fd; kpn=GAME_ZONE; clientid=3; did=web_f9970d68bc88cad83f4c41f7d07fe4fd;kpf=PC_WEB; kpn=KUAISHOU_VISION"
}
params = {
    # "fid": None,
    # "shareToken": None,
    # "shareObjectId": None,
    # "shareMethod": "TOKEN",
    # "shareId": None,
    # "shareResourceType": "PHOTO_OTHER",
    # "shareChannel": "share_copylink",
    # "kpn": "KUAISHOU",
    # "subBiz": "BROWSE_SLIDE_PHOTO",
    "env": "SHARE_VIEWER_ENV_TX_TRICK",
    # "h5Domain": "v.m.chenzhongtech.com",
    "h5Domain": "m.gifshow.com",
    "photoId": photoId,
    "isLongVideo": False,
}
API = "https://m.gifshow.com/rest/wd/photo/info?kpn=undefined&captchaToken=&__NS_sig3="
html2 = requests.post(url=API, headers=headers2,params=params)
duiaic commented 1 month ago

熄火了。不能用了。

JoeanAmier commented 1 month ago

API 已失效。