跳转至

聚合 MarketWatch 四个官方 feed 获取最新新闻快讯,按时间倒序,包括标题、摘要、作者、发布时间、链接等

基本信息

项目 值
爬虫名称 marketwatch_flash_news
平台 市场观察
版本 1.1.0
作者 noimank

请求参数

参数名 类型 必填 默认值 说明
num int ✗ 30 获取快讯数量,默认30条,最大60条(四个 feed 聚合单次上限)

使用示例

API 调用

curl -X POST http://localhost:8380/api/v1/spiders/run   -H "Content-Type: application/json"   -d '{
    "spider_name": "marketwatch_flash_news",
    "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": "marketwatch_flash_news",
            "params": { ... }
        }
    )
    result = resp.json()

返回格式

{
  "success": true,
  "message": "执行成功",
  "data": { ... },
  "execution_time": 1.23
}