DEV Community

Ahmed
Ahmed

Posted on

2 2

UK Bank Holidays

It seems like the only authoritative source on UK Bank Holidays is gov.uk e.g. it will include substitute days when Christmas Day is on a weekend.

You can use curl and jq to save the dates to csv:

curl 'https://www.gov.uk/bank-holidays.json' | jq -r  '["title","date"] , (.[].events[] | [.title,.date]) | @csv' > uk_bank_holidays.csv

Enter fullscreen mode Exit fullscreen mode

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs