能否帮忙看看快手爬去作品动态获取cookie问题
地址:https://live.kuaishou.com/gra...
请求header:
Origin: https://live.kuaishou.com
Referer: https://live.kuaishou.com/profile/3xsx74sidgkz2bq
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134
Cache-Control: max-age=0
accept: */*
content-type: application/json
Accept-Language: zh-CN
Accept-Encoding: gzip, deflate, br
Host: live.kuaishou.com
Content-Length: 1323
Connection: Keep-Alive
Cookie: client_key=65890b29; clientid=3; did=web_221d3c8e7f94a5b146b513e484bf2a54; kuaishou.live.bfb1s=ac5f27b3b62895859c4c1622f49856a4
请求body:
{"operationName":"publicFeedsQuery","variables":{"principalId":"3xsx74sidgkz2bq","pcursor":"","count":24},"query":"query publicFeedsQuery($principalId: String, $pcursor: String, $count: Int) {\n publicFeeds(principalId: $principalId, pcursor: $pcursor, count: $count) {\n pcursor\n live {\n user {\n id\n kwaiId\n eid\n profile\n name\n living\n __typename\n }\n watchingCount\n src\n title\n gameId\n gameName\n categoryId\n liveStreamId\n playUrls {\n quality\n url\n __typename\n }\n followed\n type\n living\n redPack\n liveGuess\n anchorPointed\n latestViewed\n expTag\n __typename\n }\n list {\n photoId\n caption\n thumbnailUrl\n poster\n viewCount\n likeCount\n commentCount\n timestamp\n workType\n type\n playUrl\n useVideoPlayer\n imgUrls\n imgSizes\n magicFace\n musicName\n location\n liked\n onlyFollowerCanComment\n relativeHeight\n width\n height\n user {\n id\n eid\n name\n profile\n __typename\n }\n expTag\n __typename\n }\n __typename\n }\n}\n"}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
fetch_type='js'
不需要cookie,直接干就行。
解决了吗?