Files
2024-09-27 02:06:13 +08:00

101 lines
3.6 KiB
JavaScript

module.exports = {
url: 'https://live.kuaishou.com/m_graphql',
subCommentList: (photoId,rootCommentId,pcursor = "") => {
return `
{
subCommentList(photoId: "${photoId}", rootCommentId: "${rootCommentId}", pcursor: "${pcursor}", count: 20) {
pcursor
subCommentsList {
commentId,authorId,authorName,content
headurl,timestamp,authorEid,status,replyToUserName,replyTo,
replyToEid
}
}
}`
},
RecommendFeeds: (photoId) => {
return `
{
videoRecommendFeeds(photoId: "${photoId}", count: 40) {
list {
user {
id,avatar,name
},
id,thumbnailUrl,poster,workType,type,useVideoPlayer,imgUrls,
imgSizes,magicFace,musicName,caption,location,liked,onlyFollowerCanComment,
relativeHeight,timestamp,width,height,
counts {
displayView,displayLike,displayComment
},
expTag
}
}
}
`
},
shortVideoCommentList: (photoId, pcursor = "") => {
return `{
shortVideoCommentList(photoId: "${photoId}", page: 1, pcursor: "${pcursor}", count: 100) {
commentCount,realCommentCount,pcursor,
commentList {
commentId,authorId,authorName,content,headurl,timestamp,authorEid,status,
subCommentCount,subCommentsPcursor,likedCount,liked,
subComments {
commentId,authorId,authorName,content,headurl,timestamp,authorEid
status,replyToUserName,replyTo,replyToEid
}
}
}
}`
},
// 喜欢页面 请求参数
likedFeeds: (pcursor = "") => {
return `{
likedFeeds(principalId: "geekhelp", pcursor: "${pcursor}", count: 42) {
pcursor
list {
id,thumbnailUrl,poster,workType,type,useVideoPlayer,imgUrls,imgSizes,magicFace,
musicName,caption,location,liked,onlyFollowerCanComment,relativeHeight,timestamp,width,height,
counts {
displayView,displayLike,displayComment
},
user {
id,eid,name,avatar,
},
expTag
}
}
}`;
},
// 视频真实播放地址 请求参数
feedById: (principalId, photoId)=> {
return `{
feedById(principalId: "${principalId}", photoId: "${photoId}") {
currentWork {
playUrl,poster,caption
}
}
}`;
},
publicFeeds: (principalId, pcursor = "", count = 24) => {
return `{
publicFeeds(principalId: "${principalId}", pcursor: "${pcursor}", count: ${count}) {
pcursor,
list {
id,thumbnailUrl,poster,workType,type,useVideoPlayer,imgUrls,imgSizes,magicFace,musicName,
caption,location,liked,onlyFollowerCanComment,relativeHeight,timestamp,width,height,
counts {
displayView,displayLike,displayComment
},
user {
id,eid,name,avatar,cityName
},
expTag
}
}
}`
}
};