Menu

Building a China trending-topics monitor (Weibo, Baidu, Zhihu, Douyin) in 30 lines of Python
📰

Building a China trending-topics monitor (Weibo, Baidu, Zhihu, Douyin) in 30 lines of Python

DEV Community: datascience·Tabsafely Data·20 days ago
#MktRY50e
#devtodatascience#science#devto#dev#platform
Reading 0:00
15s threshold

What is China talking about right now ? If you work in PR, brand monitoring, journalism or you feed LLM pipelines, that question means checking six different hot lists: Weibo hot search (微博热搜) , Baidu hot search , Zhihu hot list , Douyin trending , Toutiao and Bilibili — each with its own format, none with an official public API.

I got tired of maintaining six scrapers, so I merged them into one Apify Actor that returns a single unified schema. This post shows how to turn it into a tiny keyword alert.

Disclosure: I built the Actor. Pricing is pay-per-result ($2 / 1,000 items — a full run of ~280 items costs about half a cent).

Unified output

{ "platform" : "weibo" , "rank" : 3 , "title" : "..." , "url" : "https://s.weibo.com/weibo?q=..." , "hotValue" : 1234567 , "label" : "hot" , "category" : null , "fetchedAt" : "2026-10-28T08:16:41Z" }

Enter fullscreen mode

Exit fullscreen mode

Every platform maps to the same fields: platform, rank, title, url, hotValue, label, category, fetchedAt .

Fetch…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.