东方财富网通用搜索,支持资讯、公告、研报、问董秘四种搜索类型
基本信息
| 项目 | 值 |
| 爬虫名称 | eastmoney_search |
| 平台 | 东方财富 |
| 版本 | 1.0.0 |
| 作者 | noimank |
请求参数
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
keyword | str | ✓ | - | 搜索关键词 |
search_type | Literal['news', 'ann', 'report', 'qa'] | ✗ | news | 搜索类型:news=资讯, ann=公告, report=研报, qa=问董秘 |
使用示例
API 调用
curl -X POST http://localhost:8380/api/v1/spiders/run -H "Content-Type: application/json" -d '{
"spider_name": "eastmoney_search",
"params": { ... }
}'
Python SDK
import httpx
async with httpx.AsyncClient() as client:
resp = await client.post(
"http://localhost:8380/api/v1/spiders/run",
json={
"spider_name": "eastmoney_search",
"params": { ... }
}
)
result = resp.json()
返回格式
{
"success": true,
"message": "执行成功",
"data": { ... },
"execution_time": 1.23
}