Web Crawler for Time.ir to obtain all data as a JSON file, Jalali, Qamari, Miladi data are included.
This script has two pipes:
One of the pipes that you can achieve when you execute the project is creating a .ics file. by default, you can download one of the files below and import in to your calendar. these files contains all events of the year by the source of time.ir
1390, 1391, 1392, 1393, 1394, 1395, 1396, 1397, 1398, 1399, 1400, 1401, 1402, 1403,
https://hmarzban.github.io/pipe2time.ir/api/:year/:target
https://hmarzban.github.io/pipe2time.ir/api/1399/index.json
open Link
https://hmarzban.github.io/pipe2time.ir/api/1399/events.json
open Link
https://hmarzban.github.io/pipe2time.ir/api/1399/weeks.json
open Link
Also, you can download all in one these years data by this link
List of available years:
1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1402,1403
Note: if you need more years, clone the project and make your custom list of years.
{
"1398": [ ... ],
"1394": [
{
"header": {
"miladi": "March - April 2015",
"qamari": "جمادي الاولي - جمادي الثانيه - 1436",
"jalali": "فروردین 1394"},
"events": [
{
"isHoliday": true,
"text": "1 فروردین جشن نوروز/جشن سال نو",
"jDate": "1394/01/01",
"mDate": "2015/03/21",
"jDay": "1"
},
...
],
"weeks": [
{"holiday": true, "disabled": false, "day": { "j": "1", "m": "21", "q": "30" } },
...
]
},
...
],
"1401": [ ... ],
"1402": [ ... ]
}
- install dependecy
npm i
- run the cli
npm start