jackwener / jackwener/xiaohongshu-cli
chrome中已经登录,但获取不到cookie
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 272
- PR merge metrics
- No merged PRs in 30d
Description
### Version
xhs, version 0.6.4
### Operating System
Windows
### What happened?
PS C:\Users\Administrator> xhs login --cookie-source chrome
✗ Login verification failed: No 'a1' cookie found for xiaohongshu.com in chrome.
Troubleshooting:
1. Open a browser and visit https://www.xiaohongshu.com/
2. Make sure you are logged in
3. Try: xhs login --cookie-source
### Expected behavior
能获取到cookie才对
### Steps to reproduce
```bash
```
### Error output / logs
```text
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing `xhs login --cookie-source chrome` on Windows with Chrome logged in to xiaohongshu.com, then trace the Chrome cookie-source handling and its search for the `a1` cookie. Done means the command detects the existing cookie and completes login verification without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authentication, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100