python-holidays icon indicating copy to clipboard operation
python-holidays copied to clipboard

addition of holidays directly to the list by gathering from holidays websites

Open saitejareddy05 opened this issue 8 months ago • 12 comments

Is your feature request related to a problem? Please describe. Holiday data can sometimes be incomplete, inconsistent, or outdated when not sourced from official references. This makes it difficult for users to rely on the dataset for accurate calendar integration.

Describe the solution you'd like Add holidays sourced directly from authoritative government websites and other trusted institutions. Each holiday entry should include a reference link to its source for transparency and verification.

Describe alternatives you've considered

  • Relying on community submissions without verification (risk of inaccuracies).
  • Using third-party APIs (may introduce licensing or reliability issues).
  • Manual updates by contributors (time-consuming and error-prone).

Additional context

  • Improve trust and accuracy of the dataset.
  • Reduce maintenance overhead by aligning with official sources.
  • Provide transparency for users who want to verify holidays.
  • Potentially allow automation of updates when governments publish new calendars.

saitejareddy05 avatar Mar 24 '26 13:03 saitejareddy05

Add holidays sourced directly from authoritative government websites and other trusted institutions. Each holiday entry should include a reference link to its source for transparency and verification.

All the recent codes are in-fact, rule-based holidays assignment based on legal references i.e. #3349, #3317, #3191 - with archived references as well in case those sites went offline in the future.

In other cases - the changes them self are arbitrary in nature i.e. substitute holidays announced annually by Hungary, China, and other Eastern European countries, or are simply relies on visual confirmation i.e. Muslim Um-al-Qura calendar simply meant we can't add certain observances in advance.

The current issue description issue is too broad, it would be for the best to focus on a single country/market that you feel its legacy implementation was too shallow (rely on a single Wikipedia or a calendar aggregator site) or could've been improved (i.e. New Zealand did in-fact have full legal record down to the 19th century and could use a refactor https://www.nzlii.org/ ) and open new issues separately instead

PPsyrius avatar Mar 24 '26 13:03 PPsyrius

The current issue description issue is too broad

That's exactly right!

KJhellico avatar Mar 24 '26 15:03 KJhellico

this issues about updating holidays based on holidays websites like govt website for bank holidays like that it will add directly to list of holidays so it will easy for manual addition like previous issues like adding this holidays that holidays can you please assigin this issue to me i am working on this issue

saitejareddy05 avatar Mar 24 '26 15:03 saitejareddy05

@saitejareddy05, please describe in more detail exactly what you want to do.

KJhellico avatar Mar 24 '26 16:03 KJhellico

when were search if today is a holiday on google or any it shows some results according this website today is holiday

Image which shows some result then we confirm that holiday same like that i am going to do that add the holidays based on websites information if it not on that day then it will remove form list if it is true ok it will present
  1. my approach is that
  • [ ] 1. getting holidays information form search engines adding to list
  • [ ] 2. checking for holiday is correct or not if not removing
  • [ ] 3. adding pre information of holidays information

saitejareddy05 avatar Mar 24 '26 17:03 saitejareddy05

Description
Implement an automated pipeline to fetch public holiday data for <country name> from an authoritative source and add it to the repository in JSON format. Each holiday entry must include a source_url for verification.

POC scope

  • Target: <country name> only.
  • Source: <official source URL> (confirm terms/robots.txt).
  • Output schema: country, region (optional), date (ISO 8601), holiday_name, type, source_url.
  • Automation: scheduled job that validates output and opens a PR or commits changes.

Steps

  1. Confirm source and paste URL + terms.
  2. Add JSON Schema to repo.
  3. Implement fetcher (API preferred).
  4. Normalize dates and dedupe.
  5. Add unit tests and CI job.

Document process and legal considerations.

Acceptance criteria

Valid JSON output for the POC country. CI job runs and validates output. Documentation added.

Checklist

  • [ ] Confirm POC country and source URL + terms
  • [ ] [Add JSON Schema
  • [ ] Implement fetcher + normalizer
  • [ ] Add tests and CI job
  • [ ] Document process

saitejareddy05 avatar Mar 24 '26 17:03 saitejareddy05

Implement an automated pipeline to fetch public holiday data for from an authoritative source

I don't know of any source for any country that provides such data in a machine-readable format. If I did, I would use it.

KJhellico avatar Mar 24 '26 18:03 KJhellico

your task it that making this into machine-readable format while extracting we need to make this data conversion from text to json format sample link https://worldpublicholiday.com/all-supported-countries

saitejareddy05 avatar Mar 24 '26 18:03 saitejareddy05

What can we see in this data integrator with unknown sources?

KJhellico avatar Mar 24 '26 18:03 KJhellico

Hi, I am new controbuter and I have applied for GSoc. Can I work on this issue?

Akanksha788 avatar Mar 31 '26 13:03 Akanksha788

@Akanksha788, how exactly do you see work on this issue?

KJhellico avatar Mar 31 '26 13:03 KJhellico

Implement an automated pipeline to fetch public holiday data for from an authoritative source

I don't know of any source for any country that provides such data in a machine-readable format. If I did, I would use it.

As an example, the uk provides this list: https://www.gov.uk/bank-holidays.json

ShaneMcC avatar Jun 18 '26 10:06 ShaneMcC