最好的免费图书馆或数据库,以确定日期是美国还是国际假日?

为了提高年度比较的相关性,我想纠正去年的数据在复活节,劳动节或其他方面下降的事实.以编程方式确定此信息的最简单方法是什么?是否有任何解决方案可以解释国际假期?我可以像 this one那样刮一个网站,但我觉得这违反了他们的服务条款.

解决方法

在Java世界中,您提到的站点确实使用了一个API,Instant Holiday Connection,这可能是一个很好的解决方案(比屏幕抓取更好).

The Light Development Holiday Client API is a Java class library to seamlessly integrate arbitrary other applications with the 07001 to make them aware of special observation days around the globe.

但是,免费版只能访问去年假期……

一个(更公开的)数据库将是Earth Calendar,免费但没有可见的API(再次回到屏幕抓取)

time and date.com看起来似乎也包括所有国家的所有假期(再次没有可见的API).

他们确实有一个相当的complete list of Holidays

相关文章

SELECT a.*,b.dp_name,c.pa_name,fm_name=(CASE WHEN a.fm_n...
if not exists(select name from syscolumns where name=&am...
select a.*,pano=a.pa_no,b.pa_name,f.dp_name,e.fw_state_n...
要在 SQL Server 2019 中设置定时自动重启,可以使用 Window...
您收到的错误消息表明数据库 'EastRiver' 的...
首先我需要查询出需要使用SQL Server Profiler跟踪的数据库标...