# weibo-crawler errors (Expecting value, 0 posts, incomplete data, query_list, no comments): how do I fix them?

Most weibo-crawler failures come from either m.weibo.cn blocking the session (`Expecting value: line 1 column 1`, `432 Client Error`, or `KeyError: 'ok'` when HTML returns instead of JSON) or config/API limits (`since_date` auto-updating on txt-file runs so it finishes with 0 posts, `query_list` capped at 3 pages / 50 posts by m.weibo.cn, or missing `download_comment: 1` + matching `write_mode`). For cookie-free, full-history reads without m.weibo.cn limits, XTikAPI's Weibo endpoints start at $0.002 a page.

Updated 2026-11-25

## Match your symptom to the cause

| Symptom | Cause in GitHub issues | Fix inside weibo-crawler |
| --- | --- | --- |
| `Expecting value: line 1 column 1` / `KeyError: 'ok'` / `432 Client Error` | m.weibo.cn returned HTML login/verify page instead of JSON; cookie expired or IP/session rate-limited (issues #653, #593, #367) | Log out and re-login at m.weibo.cn for a fresh cookie, raise pause intervals, switch IP, or try weiboSpider |
| Finished with "共爬取0条微博" | `since_date` auto-updated after a prior txt-file run, `start_page` exceeded matching pages, or old code date format bug (issues #542, #215) | Reset `since_date` to an older date, set `start_page` to 1, update to latest source |
| Incomplete posts (e.g., 5 days instead of 1 month) | Stricter limits on official/government accounts, missing cookie, or hitting `since_date` (issues #274, #392) | Add a valid cookie, increase `stop` pauses, wait and retry if `'utf-8' codec can't decode` appears |
| `query_list` returns only 3 pages or 10–50 posts | m.weibo.cn's in-account search itself truncates results (issues #335, #609) | Remove `query_list`, crawl all posts and filter locally |
| Posts saved, 0 comments downloaded | Missing config flags; comment module is community-contributed and unmaintained (issue #641) | Set `"download_comment": 1` and include a comment-capable `write_mode` (e.g. `csv`, `markdown`) |

## Reading Weibo posts, search, and comments without cookies

1. User timeline: `weibo.posts.list` with user `id`, `cursor` (or `since_id`) for paging, and `feature` to filter original posts; full long posts via `weibo.posts.detail` (`status_id`).
2. Keyword search (without `query_list`'s 3-page truncation): `weibo.posts.search` (`keyword`, `search_type`, `cursor`) or `weibo.posts.realtime` for newest-first.
3. Comments & replies: `weibo.comments.list` (`status_id`, `max_id`, `sort`) and `weibo.comment_replies.list` (comment `id`).
4. Profile & reposts: `weibo.accounts.detail` and `weibo.posts.reposts`.

Cost check: 50 accounts × 20 pages = 1,000 calls × $0.002 = $2; 100 posts × 5 comment pages = 500 calls = $1.

## Why XTikAPI

- XTikAPI reads Weibo with 12 endpoints from $0.002 a call, and a failed call is not charged.
- Fewer tokens for AI: across 12 recorded live Weibo calls (2026-11-18), raw platform JSON is ~412k tokens vs ~18k via XTikAPI REST (95.6% fewer) and ~20k via MCP (95.3% fewer).
- See before you pay: 192 of 229 endpoints show a recorded real response on their page (12 of 12 for Weibo).
- Spending you control: a failed call or a timeout is not charged (charged: false), X-Max-Price caps one call, and the same Idempotency-Key within 24 hours is never billed twice.
- Free trial: a verified account gets $0.50, no card.

## Endpoints

- [Weibo post list API](https://xtikapi.com/apis/weibo/posts/list) ($0.002 a call): A Weibo account's posts, newest first.
- [Weibo post details API](https://xtikapi.com/apis/weibo/posts/detail) ($0.002 a call): One Weibo post by ID.
- [Weibo post search API](https://xtikapi.com/apis/weibo/posts/search) ($0.002 a call): One page of Weibo posts for a keyword, as shown in the comprehensive search tab.
- [Weibo realtime search API](https://xtikapi.com/apis/weibo/posts/realtime) ($0.002 a call): Weibo realtime search: the newest posts for a keyword.
- [Weibo comments API](https://xtikapi.com/apis/weibo/comments/list) ($0.002 a call): A page of comments on one Weibo post.
- [Weibo comment replies API](https://xtikapi.com/apis/weibo/comment_replies/list) ($0.002 a call): Replies under one Weibo comment.
- [Weibo account details API](https://xtikapi.com/apis/weibo/accounts/detail) ($0.002 a call): A Weibo account profile.
- [Weibo reposts API](https://xtikapi.com/apis/weibo/posts/reposts) ($0.002 a call): Reposts of a Weibo post.

## More about Weibo

- [Weibo API](https://xtikapi.com/apis/weibo)
- [MediaCrawler errors (Verifytype, Douyin page 1 empty, XHS 406, Kuaishou) & hosted alternatives?](https://xtikapi.com/answers/mediacrawler-errors-and-alternatives)

## How to do it

- [How to get all comments on a Weibo post](https://xtikapi.com/guides/weibo-post-comments)

## Sources

What this page says about other products comes from their own pages and docs, read on 2026-11-25.

- [weibo-crawler issue #653 (Expecting value after first page)](https://github.com/dataabc/weibo-crawler/issues/653)
- [weibo-crawler issue #593 (432 without cookie, Expecting value with cookie)](https://github.com/dataabc/weibo-crawler/issues/593)
- [weibo-crawler issue #542 (0 posts with valid cookie)](https://github.com/dataabc/weibo-crawler/issues/542)
- [weibo-crawler issue #609 (query_list only 10 posts)](https://github.com/dataabc/weibo-crawler/issues/609)
- [weibo-crawler issue #641 (comment download broken)](https://github.com/dataabc/weibo-crawler/issues/641)
- [weibo-crawler issue #274 (incomplete data)](https://github.com/dataabc/weibo-crawler/issues/274)

## Questions

### Is `Expecting value` the same as HTTP 432?

Both stem from Weibo rejecting the session: 432 happens without a valid cookie, while `Expecting value` happens when Weibo serves an HTML login/verification page instead of JSON.

### Can raising `page_weibo_count` fix `query_list` returning too few posts?

Only partially: in issue #609 raising it from 10 to 100 increased results from 10 to 50, because m.weibo.cn itself truncates in-account search.

---

XTikAPI: one API key for public social media data, prepaid per call. [HTML version](https://xtikapi.com/answers/weibo-crawler-errors-and-fixes) · [llms.txt](https://xtikapi.com/llms.txt) · [OpenAPI](https://xtikapi.com/openapi.json)
