Sina Finance Article Extractor
Extracts structured article content from Sina Finance (finance.sina.com.cn) stock news pages.
Overview
This skill specifically targets Sina Finance articles that contain TOP50 ranking lists and other financial news. It successfully extracts article content that generic readers often fail to parse due to the site's complex navigation structure.
Supported URLs
- Stock news articles:
https://finance.sina.com.cn/stock/relnews/*/YYYY-MM-DD/doc-*.shtml
- General finance articles from finance.sina.com.cn domain
Features
Article Extraction
Extracts comprehensive article data:
- Metadata: Title, description, keywords, author, source, publish/update times
- Content: Full text, individual paragraphs, content length
- Images: All images with URLs and alt text
- Categorization: Auto-detects article category from URL (stock_hk, stock_us, forex, etc.)
- Article ID: Extracts unique article ID from URL
Data Fields
Returned data includes:
title: Article title (cleaned, without site suffix)
description: Meta description
keywords: List of article keywords
author: Article author
source: Content source/publisher
published_time: Publication timestamp
updated_time: Last update timestamp
category: Article category (stock, stock_hk, stock_us, forex, future, fund)
content: Full article text
paragraphs: List of individual paragraphs
images: List of image objects with url, alt, title
content_length: Character count of content
paragraph_count: Number of paragraphs
image_count: Number of images
Use Cases
- Extract TOP50 ranking lists from property service company articles
- Parse financial news articles for content analysis
- Extract stock market reports and analyses
- Collect article metadata for research purposes
Example
result = await execute({
"function": "get_article",
"url": "https://finance.sina.com.cn/stock/relnews/hk/2025-05-06/doc-inevrvkt0394044.shtml",
"include_images": true,
"include_content": true
})
# Returns structured data:
{
"success": true,
"title": "2025年4月中国物业服务企业品牌传播TOP50",
"author": "中指物业研究",
"category": "stock_hk",
"content": "...",
"paragraphs": [...],
"images": [...],
...
}
Error Handling
- Returns structured error responses for:
- Missing required parameters
- Invalid domain (must be sina.com.cn)
- 404 not found articles
- HTTP/network errors
- Parse failures
All errors include the URL and article ID (if available) for debugging.
Notes
- The skill uses direct HTTP requests without browser automation for efficiency
- Content is extracted from the
#artibody element which is standard for Sina articles
- Images with protocol-relative URLs (
//n.sinaimg.cn/...) are converted to HTTPS
- The extractor handles both standard meta tags and Sina-specific Weibo meta tags
- Article titles are cleaned by removing site suffixes like "|物业_新浪财经_新浪网"
1---2name: finance-sina-com-cn3description: Sina Finance Article Extractor4---5# Sina Finance Article Extractor67Extracts structured article content from Sina Finance (finance.sina.com.cn) stock news pages.89## Overview1011This skill specifically targets Sina Finance articles that contain TOP50 ranking lists and other financial news. It successfully extracts article content that generic readers often fail to parse due to the site's complex navigation structure.1213## Supported URLs1415- Stock news articles: `https://finance.sina.com.cn/stock/relnews/*/YYYY-MM-DD/doc-*.shtml`16- General finance articles from finance.sina.com.cn domain1718## Features1920### Article Extraction2122Extracts comprehensive article data:2324- **Metadata**: Title, description, keywords, author, source, publish/update times25- **Content**: Full text, individual paragraphs, content length26- **Images**: All images with URLs and alt text27- **Categorization**: Auto-detects article category from URL (stock_hk, stock_us, forex, etc.)28- **Article ID**: Extracts unique article ID from URL2930### Data Fields3132Returned data includes:3334- `title`: Article title (cleaned, without site suffix)35- `description`: Meta description36- `keywords`: List of article keywords37- `author`: Article author38- `source`: Content source/publisher39- `published_time`: Publication timestamp40- `updated_time`: Last update timestamp41- `category`: Article category (stock, stock_hk, stock_us, forex, future, fund)42- `content`: Full article text43- `paragraphs`: List of individual paragraphs44- `images`: List of image objects with url, alt, title45- `content_length`: Character count of content46- `paragraph_count`: Number of paragraphs47- `image_count`: Number of images4849## Use Cases5051- Extract TOP50 ranking lists from property service company articles52- Parse financial news articles for content analysis53- Extract stock market reports and analyses54- Collect article metadata for research purposes5556## Example5758```python59result = await execute({60 "function": "get_article",61 "url": "https://finance.sina.com.cn/stock/relnews/hk/2025-05-06/doc-inevrvkt0394044.shtml",62 "include_images": true,63 "include_content": true64})6566# Returns structured data:67{68 "success": true,69 "title": "2025年4月中国物业服务企业品牌传播TOP50",70 "author": "中指物业研究",71 "category": "stock_hk",72 "content": "...",73 "paragraphs": [...],74 "images": [...],75 ...76}77```7879## Error Handling8081- Returns structured error responses for:82 - Missing required parameters83 - Invalid domain (must be sina.com.cn)84 - 404 not found articles85 - HTTP/network errors86 - Parse failures8788All errors include the URL and article ID (if available) for debugging.8990## Notes9192- The skill uses direct HTTP requests without browser automation for efficiency93- Content is extracted from the `#artibody` element which is standard for Sina articles94- Images with protocol-relative URLs (`//n.sinaimg.cn/...`) are converted to HTTPS95- The extractor handles both standard meta tags and Sina-specific Weibo meta tags96- Article titles are cleaned by removing site suffixes like "|物业_新浪财经_新浪网"