If you run a China book — equities, FX, commodities, or just a macro tilt — you already know the problem: the official numbers are slow and the English-language coverage is downstream of what already moved on Chinese social platforms. By the time a theme reaches Bloomberg, retail Weibo has been talking about it for days.
Weibo (微博) is where Chinese consumer and retail-investor sentiment shows up first. 580M+ monthly actives, a public hot-search board that turns over hourly, and cashtag-style chatter on every listed name. The catch: there's no official API for international developers, and the data is in Chinese.
This post walks through how to pull Weibo into a usable alt-data feed with a few lines of Python — hot-search trend tracking, keyword/cashtag sentiment, and KOL post monitoring — using an Apify Actor I maintain, so you don't have to babysit visitor cookies or rate limits.
The three signals worth pulling
1. Hot search board (the leading indicator). Weibo's trending board is the single fastest read on what 1.4B people are paying attention to. A brand, a policy rumor, a product recall, a CEO quote — it surfaces here first. For a fund, the delta matters more than the snapshot: what entered the board in the last hour, and how fast it's climbing.
2. Keyword / cashtag sentiment. Search a ticker's Chinese name, a brand, or a product line and you get the raw retail read — positive, negative, the volume of chatter, and which posts have reach. This is the consumer-demand nowcast that quarterly filings give you 90 days late.
3. KOL post monitoring. A single finance or consumer KOL with 5M followers moves retail flows in hours. Tracking specific accounts' posts (and their engagement velocity) is a cleaner signal than aggregate noise.
Pull the hot-search board
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("zhorex/weibo-scraper").call(run_input={
"mode": "hot_search",
"maxResults": 100,
})
for topic in client.dataset(run["defaultDatasetId"]).iterate_items():
print(topic["rank"], topic["title"], topic.get("heat"))
Run this on a cron every 30-60 minutes and diff consecutive snapshots. A topic that jumps 40 ranks in one hour is the alpha — not its absolute position.
Keyword sentiment as a consumer nowcast
Say you're long a Chinese EV name and want the retail read before the delivery numbers print:
from apify_client import ApifyClient
import pandas as pd
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("zhorex/weibo-scraper").call(run_input={
"mode": "search",
"searchQuery": "比亚迪", # BYD in Chinese — Chinese keywords yield far better recall
"maxResults": 300,
})
df = pd.DataFrame(client.dataset(run["defaultDatasetId"]).iterate_items())
# Reach-weight the chatter: a 2M-follower account counts more than a burner.
df["reach"] = df["repostsCount"].fillna(0) + df["commentsCount"].fillna(0) + df["likesCount"].fillna(0)
print(df.sort_values("reach", ascending=False)[["text", "reach", "createdAt"]].head(10))
Pipe the text field through whatever Chinese sentiment model you already run (or a multilingual LLM) and you have a daily polarity series per name. Track the 7-day delta in mention volume + polarity and you've built a sentiment-velocity factor for the cost of a few cents per run.
Build a daily China alt-data job
The two actors that matter together: Weibo for broad consumer + retail sentiment, and the Xueqiu Scraper for finance-specific cashtag chatter (Xueqiu is China's retail-investor forum — closer to a StockTwits read). Run both on the same cron, join on ticker, and you get consumer sentiment and investor sentiment side by side.
tickers = {"BYD": "比亚迪", "Pop Mart": "泡泡玛特", "Luckin": "瑞幸咖啡"}
rows = []
for name, zh in tickers.items():
run = client.actor("zhorex/weibo-scraper").call(run_input={
"mode": "search", "searchQuery": zh, "maxResults": 200,
})
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
rows.append({"name": name, "mentions": len(items)})
print(pd.DataFrame(rows).sort_values("mentions", ascending=False))
Diff today's mention counts against a trailing 7-day mean and you have a chatter-velocity screen across your whole China book.
Pricing
The Weibo Scraper is pay-per-event — you pay per item returned, no subscription, no seat fee. A 300-post sentiment pull is a few cents. A daily 20-ticker monitoring job across the month lands in the low tens of dollars. Compare that to a Bloomberg China module or a packaged alt-data feed and the math is not close.
| Job | Volume | Rough monthly cost |
|---|---|---|
| Hourly hot-search tracker | ~70K topics/mo | low tens of $ |
| 20-ticker daily sentiment | ~120K posts/mo | tens of $ |
| One-off theme research | a few K posts | a few $ |
See the Actor's Pricing tab for the exact per-result rate.
What this is NOT
Honest scoping, because sophisticated buyers care more about this than the pitch:
- Not real-time tick data. Cron-based polling; 30-60 min cadence is realistic and plenty for sentiment.
- Not a sentiment model. It returns the raw posts + engagement + metadata. You bring (or plug in) the NLP.
- Not authenticated content. Public surface only — hot search, public search results, public profiles. Some modes (user timelines) work better with your own session cookie, which is optional.
- Not financial advice or a signal in a box. It's a data feed. The factor construction is yours.
The broader China stack
If Weibo is the consumer + retail-sentiment layer, the rest of the stack fills in the gaps:
- Xueqiu Scraper — retail-investor forum, cashtag-tagged, the finance-specific sentiment read
- RedNote / Xiaohongshu Scraper — consumer-brand and product sentiment, the highest-trust purchase-decision channel in China
- Bilibili Scraper — Gen-Z video sentiment and creator analytics
- Chinese Brand Monitor — if you'd rather not wire up four scrapers, this aggregates Weibo + RedNote + Bilibili + Douban + Xueqiu into one normalized, deduplicated, sentiment-tagged feed at a per-mention price
Try it
A small Weibo pull costs cents, and Apify's free tier covers a first run. Start here: zhorex/weibo-scraper. If you build a China sentiment factor on top of it, I'd genuinely like to hear how — drop a comment or open an issue on the Actor page.
Top comments (0)