get_industry_news
Retrieve recent news headlines for an industry or theme. Provide a Chinese keyword and an optional number of days to filter articles.
Instructions
Get recent news headlines for an industry or theme.
Args:
industry: An industry/theme keyword in Chinese, e.g. "光伏"
(photovoltaics) or "新能源车" (electric vehicles).
days: Look-back window in days (default 7, capped at 30). Items older
than this are dropped.
Returns:
A dict with the query echoed back and an articles list, each item
carrying title, source, published_at and url. On
failure, a dict with an error key.
Example: >>> get_industry_news("光伏", days=7) # doctest: +SKIP {'industry': '光伏', 'days': 7, 'count': 12, 'articles': [{'title': '...', 'source': '...', 'published_at': '2024-01-15 10:30:00', 'url': '...'}, ...]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| industry | Yes | ||
| days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||