# How do I crawl Weibo incrementally on a schedule instead of downloading everything again?

weiboSpider supports it through `since_date`: besides a date it accepts an integer number of days, which its maintainer says was designed for scheduled runs with crontab (issue 103, January 2020, 30 comments); a user's earlier request for "update only" (issue 67) led there. The catch the maintainer raised is that the cookie expires and later runs fail silently. XTikAPI's `weibo.posts.list` returns a user's newest posts first with no cookie, so a scheduled job only reads page one, $0.002 a page.

Updated 2026-11-24

## The weiboSpider way

1. Set `since_date` to an integer, e.g. `1`, to mean "posts from the last day".
2. Run it from crontab daily.
3. Watch for cookie expiry: the maintainer warned that an expired cookie makes every later scheduled run fail without you noticing.
4. Slow down if you get limited; he pointed to the random pause code in `get_weibo_info`.

A user's alternative in issue 103 was a shell script that rewrites `since_date` in `config.json` with `date -d '7 days ago'` and `sed` before each run.

## Polling the newest page

1. Keep the newest post ID you stored per account.
2. Daily, call `weibo.posts.list` with the user `id`; stop paging once you reach a stored ID.
3. Fetch full text for long posts with `weibo.posts.detail`.

Cost: 200 accounts × 1 page a day × 30 days = 6,000 calls × $0.002 = $12. A failed call is not charged, so no cookie expiry to babysit.

## 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).
- Made for AI: hosted OAuth MCP server (/v1/mcp), Markdown twin per page, llms.txt and OpenAPI for ChatGPT, Claude and Cursor.
- 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 account details API](https://xtikapi.com/apis/weibo/accounts/detail) ($0.002 a call): A Weibo account profile.

## 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)

## Sources

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

- [weiboSpider issue #103 (running the crawler on a schedule)](https://github.com/dataabc/weiboSpider/issues/103)
- [weiboSpider issue #67 (update instead of re-downloading)](https://github.com/dataabc/weiboSpider/issues/67)

## Questions

### Will a cron job keep working for months?

With a cookie-based crawler, only until the cookie expires; the weiboSpider maintainer flagged that as the main risk.

---

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