Merge branch 'main' of https://github.com/xpzouying/xiaohongshu-mcp into feature/comment-feed-logic

This commit is contained in:
chekayo
2025-12-07 15:58:50 +08:00
17 changed files with 525 additions and 88 deletions

View File

@@ -86,6 +86,13 @@ type UserProfileResponse struct {
Feeds []xiaohongshu.Feed `json:"feeds"`
}
// DeleteCookies 删除 cookies 文件,用于登录重置
func (s *XiaohongshuService) DeleteCookies(ctx context.Context) error {
cookiePath := cookies.GetCookiesFilePath()
cookieLoader := cookies.NewLoadCookie(cookiePath)
return cookieLoader.DeleteCookies()
}
// CheckLoginStatus 检查登录状态
func (s *XiaohongshuService) CheckLoginStatus(ctx context.Context) (*LoginStatusResponse, error) {
b := newBrowser()