Platform Configuration
TrendRadar's trending data comes from the NewsNow project, which supports dozens of popular platforms. This page explains how to configure the trending platforms you want to monitor.
Config file location
Platform configuration lives in the
platforms section of config/config.yaml.Config format
Each platform requires an
id (the platform identifier) and a name (the display name), with an optional expected_domain (domain security validation). A complete example:platforms:
enabled: true
sources:
- id: "toutiao"
name: "今日头条"
expected_domain: "toutiao.com"
- id: "baidu"
name: "百度热搜"
expected_domain: "baidu.com"
- id: "wallstreetcn-hot"
name: "华尔街见闻"
expected_domain: "wallstreetcn.com"
- id: "zhihu"
name: "知乎"
expected_domain: "zhihu.com"
- id: "weibo"
name: "微博"
expected_domain: "weibo.com"
- id: "bilibili-hot-search"
name: "bilibili 热搜"
expected_domain: "bilibili.com"About the expected_domain field
Optional domain validation. Enter the primary domain (e.g.
baidu.com). The system will verify that the domains in the returned data links match; mismatched data is discarded with a warning logged. Recommended.About the enabled field
Set
enabled to true to enable trending fetching, or set it to false to completely turn off the trending feature.How to find a platform ID
There are several ways to find the available platform IDs:
Option 1: Online preview
Visit https://newsnow.busiyi.world/ and click the "More" button on the page to see the full list of supported platforms.
Option 2: Read the source code
Visit the source directory of the NewsNow project, server/sources. Each subdirectory / file name is the corresponding platform ID.
For example, the directory contains
toutiao, baidu, wallstreetcn-hot, and so on — these are the id values you fill into your config.Option 3: Community-curated list (recommended)
The community maintains a configuration list of commonly used platforms that you can copy directly:
Open the link and copy the platform configuration snippets straight into your
config.yaml.Default platform list
If you haven't changed the configuration, the following 11 platforms are enabled by default:
| No. | Platform ID | Platform Name |
|---|---|---|
| 1 | zhihu | Zhihu |
| 2 | douyin | Douyin |
| 3 | bilibili-hot-search | Bilibili Hot Search |
| 4 | wallstreetcn-hot | Wallstreetcn |
| 5 | tieba | Tieba |
| 6 | baidu | Baidu Hot Search |
| 7 | cls-hot | CLS Hot |
| 8 | thepaper | The Paper |
| 9 | ifeng | Ifeng |
| 10 | toutiao | Toutiao |
| 11 | weibo |
Configuration tips
Keep the number of platforms to 10-15
Configuring too many platforms leads to information overload — each push contains too much content, which actually makes it harder to grab the important information efficiently. We recommend picking 10-15 platforms based on your areas of interest.
Quick configuration trick
Don't want to look up platform IDs one by one? Just visit the community-curated platform list and copy the parts you need to finish the configuration.
General principles for picking platforms:
- General news: Toutiao, Baidu Hot Search, etc. — covering trending topics
- Finance: Wallstreetcn, Cailian Press, etc. — good for following financial markets
- Social media: Weibo Hot Search, Douyin Trending, etc. — tracking social trends
- Tech communities: Zhihu Hot List, Bilibili Trending, etc. — for in-depth discussion
Combine them freely based on your information needs — there's no need to cover every platform.