jackwener / jackwener/xiaohongshu-cli

被反爬风控了怎么办,发现每个号只能爬一次,请求多了就会被机器人识别

Open
#71 1 comment 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

pip show xiaohongshu-cli | grep Version

### Operating System

Windows

### What happened?

Image 搜索失败:寝室好物 / popular / 第1页:命令失败(1):search 寝室好物 --sort popular --type image --page 1;WARNING:xhs_cli.client:Captcha triggered (count=1), cooling down 5s before raising WARNING:xhs_cli.client:Captcha triggered (count=2), cooling down 10s before raising

### Expected behavior

优化请求频率与重试策略,如果需要人机验证的时候,可以人工进行人机验证

### Steps to reproduce

```bash

```

### Error output / logs

```text

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the `search` command and the `xhs_cli.client` captcha and retry path, reproducing the reported Windows command if possible. Review how request frequency, cooldowns, retries, and human verification are handled. Done means searches no longer trigger avoidable repeated captcha failures and the intended manual-verification path works.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.