You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何用R Studio从Forex Factory源码提取event_type并关联事件类型

从Forex Factory日历抓取事件与event_type关联的问题

我想从Forex Factory日历页面提取事件对应的event_type。以页面https://www.forexfactory.com/calendar?week=sep17.2023为例,在源码第95行可以找到事件类型的ID-名称映射:

"event_types":{"1":"Growth","2":"Inflation","3":"Employment","4":"Central Bank","5":"Bonds","7":"Housing","8":"Consumer Surveys","9":"Business Surveys","10":"Speeches","11":"Misc"}

但在源码第88行的事件列表中,如下这个事件对象里并未包含关联的event_type ID:

{"id":131238,"ebaseId":852,"name":"BusinessNZ Services Index","dateline":1694989800,"country":"NZ","currency":"NZD","hasLinkedThreads":true,"hasNotice":false,"hasGraph":true,"checkedIn":false,"isMasterList":false,"firstInDay":true,"showGridLine":true,"greyed":true,"upNext":false,"releaser":"JS","checker":"TR","impactClass":"icon--ff-impact-yel","impactTitle":"Low Impact Expected","timeLabel":"6:30pm","actual":"47.1","previous":"47.8","revision":"48.0","forecast":"","leaked":false,"actualBetterWorse":0,"revisionBetterWorse":0,"isSubscribable":true,"isSubscribed":false,"showDetails":false,"showGraph":false,"enableDetailComponent":false,"enableExpandComponent":false,"enableActualComponent":false,"showExpanded":false,"siteId":1,"editUrl":"","date":"Sep 17, 2023","url":"/calendar?day=sep17.2023#detail=131238"}

我不清楚网站是如何实现日历筛选功能的,希望通过R Studio进行网页抓取,获取事件与event_type的关联信息。


内容的提问来源于stack exchange,提问作者Nick Amato

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.10 09:57:39