Skip to content

A NodeJS CLI that scraps jalali holidays from badesaba.ir

Notifications You must be signed in to change notification settings

DeeepDev/scrap-jalali-holidays

Repository files navigation

What is this library?

This library can be used for extracting jalali holidays from badesaba.ir API. It has a CLI by which you can specify a range of dates and get the holidays in that range.

How to use the CLI?

scrap-jalali-holidays [options]
Option Description Default
--from from date (YYYY-MM format) 1350-01
--to to date (YYYY-MM format) 1450-12
--scrap-occasions whether to scrap occasions or not false
--output-ext extension of output file (js json)
--output-dir directory of output file N/A

There is a field created_at in the output json, which the script uses later to override the from date, so if you want to opt out of this feature, you can use --force-update option.

About

A NodeJS CLI that scraps jalali holidays from badesaba.ir

Resources

Stars

Watchers

Forks

Packages

No packages published