jackwener / jackwener/xiaohongshu-cli

xhs user xxx返回api错误

Open
#49 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
2.6k
Forks
272
PR merge metrics
No merged PRs in 30d

Description

### Version

0.6.4

### Operating System

macOS

### What happened?

xhs user xxx返回api错误

```shell
xhs user $(xhs status --json | awk -F'"' '/"id":/ {print $4}')
```

### Expected behavior

正常返回用户个人信息

### Error output / logs

```shell
xhs user xxx
✗ API error: {"code": -1, "success": false}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the `xhs user` command shown in the issue, using the user ID from `xhs status --json`, and trace the CLI entry point handling the API response. Done means the command returns the user's profile information instead of `{"code": -1, "success": false}`.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.