← 返回
开发者工具 中文

Economic Calendar

Fetch and display filtered macro-economic events from Investing.com with no API key, supporting date range, importance, country, timezone, and JSON output.
无需API密钥,获取并展示Investing.com筛选后的宏观经济事件,支持日期范围、重要性、国家、时区及JSON输出。
quantx-heiko quantx-heiko 来源
开发者工具 clawhub v1.0.1 1 版本 99895.2 Key: 无需
★ 0
Stars
📥 953
下载
💾 27
安装
1
版本
#economics#finance#forex#latest#scraping

概述

economic-calendar

Fetch macro-economic events (Fed, ECB, CPI, etc.) from Investing.com. No API key required — pure scraping.

Usage

# Today's high-importance US events (table output)
python scripts/economic_calendar.py

# Specific date with custom filters
python scripts/economic_calendar.py --date 2026-03-01 --importance high medium --countries "united states" germany

# Multiple days (next 7 days)
python scripts/economic_calendar.py --days 7 --importance high medium --countries "united states"

# JSON to stdout (for automation/piping)
python scripts/economic_calendar.py --date tomorrow --json stdout

# JSON to file (default: calendar_YYYYMMDD.json)
python scripts/economic_calendar.py --days 3 --json file

Options

FlagDescriptionDefault
----------------------------
--dateStart date: today, tomorrow, yesterday, or YYYY-MM-DDtoday
--daysFetch range of N days (overrides --date)
--importanceFilter levels: low, medium, high (space-separated)high
--countriesCountries (space-separated, quotes for multi-word)united states
--timezoneTimezone for event timesGMT +1:00
--jsonJSON mode: file, stdout, nonefile

Countries

Available country names (use quotes for multi-word):

  • united states
  • germany
  • united kingdom
  • france
  • japan
  • china
  • canada
  • australia
  • switzerland
  • eurozone

Timezones

Common timezones:

  • GMT +1:00 — Berlin/Vienna (CET) ✓ default
  • GMT +2:00 — Berlin/Vienna (CEST)
  • GMT -5:00 — New York (EST)
  • GMT -4:00 — New York (EDT)
  • GMT — UTC

Output Formats

Table (default)

Human-readable formatted table to stdout:

================================================================================
  Economic Calendar  |  25.02.2026
  Countries: United States  |  Timezone: GMT +1:00  |  Importance: high
================================================================================
  Time    Imp.     Curr.  Event                          Forecast  Previous  Actual
  ------- -------- ------ ------------------------------ --------- --------- --------
  14:30   high     USD    Unemployment Claims            215K      219K      —
  14:30   high     USD    Core PPI m/m                   0.3%      0.4%      —
================================================================================
  2 event(s) found.

JSON

{
  "from": "2026-02-25",
  "to": "2026-02-25",
  "timezone": "GMT +1:00",
  "importances": ["high"],
  "countries": ["united states"],
  "events": [
    {
      "date": "Tuesday, February 25, 2026",
      "time": "14:30",
      "currency": "USD",
      "importance": 3,
      "event": "Unemployment Claims",
      "actual": "",
      "forecast": "215K",
      "previous": "219K"
    }
  ]
}

Dependencies

pip install requests beautifulsoup4 lxml

Notes

  • Source: Investing.com (server-side rendered, reliable CSS selectors)
  • Rate limiting: Built-in delays between requests
  • Session handling: Maintains cookies across requests for proper session state
  • Data validity: Historical data + 1+ years forward
  • No API key: All data is publicly scraped

Use in Workflows

# Daily briefing — get today's high/medium US events as JSON
python3 skills/economic-calendar/scripts/economic_calendar.py \
  --date today \
  --importance high medium \
  --countries "united states" \
  --json stdout

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 22:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 272 📥 99,841
office-efficiency

ZUGFeRD Invoice Merger

quantx-heiko
将符合 ZUGFeRD 2.1 标准的发票 PDF 与工时报告合并为一个可见的多页 PDF/A-3b 文件,并嵌入 XML,用于德国 B2B/政府采购。
★ 0 📥 722
data-analysis

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,970