|
| request_comments | 逻辑型 | | |
| id | 文本型 | | | | pcursor | 文本型 | | | | cookie | 文本型 | | | | ip | 文本型 | | | | Comments | 存取列表 | | | |
| 变量名 | 类 型 | 静态 | 数组 | 备 注 | | data | 存取键值表 | | | | variables | 存取键值表 | | | | body | 存取键值表 | | |
variables. 置值 (“photoId”, id )variables. 置值 (“pcursor”, pcursor )data. 置值 (“operationName”, “commentListQuery”)data. 置值 (“variables”, variables )data. 置值 (“query”, #comment_list ) 如果真 (ksSend (data, cookie, ip, body ) = 假) 返回 (假)body.取列表 (“//data.visionCommentList.rootComments”, Comments)返回 (真)|
| request_detail | 逻辑型 | | |
| id | 文本型 | | | | cookie | 文本型 | | | | ip | 文本型 | | | | body | 存取键值表 | | | |
| 变量名 | 类 型 | 静态 | 数组 | 备 注 | | data | 存取键值表 | | | | variables | 存取键值表 | | |
variables. 置值 (“photoId”, id )variables. 置值 (“page”, “search”)data. 置值 (“operationName”, “visionVideoDetail”)data. 置值 (“variables”, variables )data. 置值 (“query”, #video_detail )返回 (ksSend (data, cookie, ip, body )) |
| request_replys | 逻辑型 | | |
| id | 文本型 | | | | comment_id | 文本型 | | | | cookie | 文本型 | | | | ip | 文本型 | | | | body | 存取键值表 | | | |
| 变量名 | 类 型 | 静态 | 数组 | 备 注 | | data | 存取键值表 | | | | variables | 存取键值表 | | |
variables. 置值 (“photoId”, id )variables. 置值 (“rootCommentId”, comment_id )variables. 置值 (“pcursor”, “”)data. 置值 (“operationName”, “visionSubCommentList”)data. 置值 (“variables”, variables )data. 置值 (“query”, #常量1 )返回 (ksSend (data, cookie, ip, body )) |
| request_search | 逻辑型 | | |
| keyword | 文本型 | | | | cookie | 文本型 | | | | ip | 文本型 | | | | body | 存取键值表 | | | |
| 变量名 | 类 型 | 静态 | 数组 | 备 注 | | data | 存取键值表 | | | | variables | 存取键值表 | | |
variables. 置值 (“keyword”, keyword )variables. 置值 (“page”, “search”)variables. 置值 (“pcursor”, “”)data. 置值 (“operationName”, “visionSearchPhoto”)data. 置值 (“variables”, variables )data. 置值 (“query”, #search_query )返回 (ksSend (data, cookie, ip, body )) |
| request_user | 逻辑型 | | |
| id | 文本型 | | | | cookie | 文本型 | | | | ip | 文本型 | | | | body | 存取键值表 | | | |
| 变量名 | 类 型 | 静态 | 数组 | 备 注 | | data | 存取键值表 | | | | variables | 存取键值表 | | |
variables. 置值 (“userId”, id )data. 置值 (“operationName”, “visionProfile”)data. 置值 (“variables”, variables )data. 置值 (“query”, #profile )返回 (ksSend (data, cookie, ip, body )) |
| request_user_photo | 逻辑型 | | |
| id | 文本型 | | | | cookie | 文本型 | | | | ip | 文本型 | | | | body | 存取键值表 | | | |
| 变量名 | 类 型 | 静态 | 数组 | 备 注 | | data | 存取键值表 | | | | variables | 存取键值表 | | |
variables. 置值 (“userId”, id )variables. 置值 (“page”, “profile”)variables. 置值 (“pcursor”, “”)data. 置值 (“operationName”, “visionProfilePhotoList”)data. 置值 (“variables”, variables )data. 置值 (“query”, #profile_photo )返回 (ksSend (data, cookie, ip, body )) COMMON_HEADERS. 置值 (“Accept-Language”, “zh-CN,zh;q=0.9,en;q=0.8”)COMMON_HEADERS. 置值 (“Cache-Control”, “no-cache”)COMMON_HEADERS. 置值 (“Connection”, “keep-alive”)COMMON_HEADERS. 置值 (“DNT”, “1”)COMMON_HEADERS. 置值 (“Origin”, “https://www.kuaishou.com”)COMMON_HEADERS. 置值 (“Pragma”, “no-cache”)COMMON_HEADERS. 置值 (“Referer”, “https://www.kuaishou.com/new-reco”)COMMON_HEADERS. 置值 (“Sec-Fetch-Dest”, “empty”)COMMON_HEADERS. 置值 (“Sec-Fetch-Mode”, “cors”)COMMON_HEADERS. 置值 (“Sec-Fetch-Site”, “same-origin”)COMMON_HEADERS. 置值 (“User-Agent”, “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36”)COMMON_HEADERS. 置值 (“accept”, “*/*”)COMMON_HEADERS. 置值 (“content-type”, “application/json”)COMMON_HEADERS. 置值 (“sec-ch-ua-mobile”, “?0”)|
| ksSend | 逻辑型 | | |
| data | 存取键值表 | | | | cookie | 文本型 | | | | ip | 文本型 | | | | runData | 存取键值表 | | | |
| 变量名 | 类 型 | 静态 | 数组 | 备 注 | | url | 文本型 | | | | KScommon | KScommon | | | | headers | 类_POST数据类 | | | | str | 文本型 | | |
url = “https://www.kuaishou.com” + “/graphql”headers = KScommon. get_headers ()headers. 置值 (“cookie”, cookie )str = 编码_Utf8到Ansi (网页_访问_对象 (url, 1, data. 到JSON (假, , , , ), , , headers. 获取协议头数据 (), , , , , ip, , , , , , , , )) 调试输出 (str ) 如果真 (runData. 从JSON载入 (str, , , ) = 假) 返回 (假) 如果真 (runData. 取数量 (“//data.visionCommentList.rootComments”) = 0 ) 返回 (假) 返回 (真)
|