Database of ICS files for non working days
Provides a database of ICS files for non-working days, likely hosted in a public repository.
import requests
# Placeholder URL: Replace with the actual URL to the ICS file you want to download (e.g., for a specific country/year)
url = "https://example.com/non_working_days/US/2024.ics"
response = requests.get(url)
if response.status_code == 200:
with open("US_2024_holidays.ics", "wb") as f:
f.write(response.content)
print("ICS file downloaded successfully!")
else:
print(f"Failed to download ICS file. Status code: {response.status_code}")Last 50 checks (10 min intervals)