Skip to content

Python scraper for Time.ir to generate a comprehensive Jalali-Gregorian calendar with holiday details. Includes web scraping, date conversion, and data merging using BeautifulSoup, jdatetime, and pandas.

License

Notifications You must be signed in to change notification settings

DehghanianSina/IR_Holidays_Scraper

Repository files navigation

IR_Holiday Calendar Scraper

IR_Holiday Calendar Scraper is a Python project designed to scrape and process holiday data from the time.ir website. This tool helps you generate a complete Jalali (Persian) and Gregorian calendar dataset, including official holidays and regular days.

Features

  • Extract official holiday data from the time.ir website.
  • Convert Jalali (Persian) dates to Gregorian using jdatetime.
  • Build a comprehensive calendar dataset in a structured format (DataFrame or CSV).
  • Output includes:
    • Jalali and Gregorian dates.
    • Holiday markers (is_holiday).
    • Holiday descriptions for official holidays.

Usage

Whether you're building a scheduling app, a calendar integration, or analyzing date-related data, this project simplifies the process by providing accurate and structured calendar data.

Requirements

  • Python 3.6+
  • Libraries:
    • requests
    • BeautifulSoup
    • jdatetime
    • pandas

Installation

Clone this repository and install the required dependencies:

git clone https://github.com/your_username/ir_holiday_calendar_scraper.git
cd ir_holiday_calendar_scraper
pip install -r requirements.txt

Contributing

Contributions and suggestions are welcome! If you like this project, don't forget to star 🌟 the repository.

About

Python scraper for Time.ir to generate a comprehensive Jalali-Gregorian calendar with holiday details. Includes web scraping, date conversion, and data merging using BeautifulSoup, jdatetime, and pandas.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages