0.5.2 • Published 1 year ago

scrap-jalali-holidays v0.5.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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]
OptionDescriptionDefault
--from from date (YYYY-MM format)1350-01
--to to date (YYYY-MM format)1450-12
--scrap-occasionswhether to scrap occasions or notfalse
--output-ext extension of output file (jsjson)js
--output-dir directory of output fileN/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.