an api written in japronto which fetches calendar events from time.ir with scraping method!
First it is better to have an virtual environment for app to be running! so run
$ python3 -m venv env
in the directory where app is cloned!
Then you should install the dependecies which are:
beautifulsoup4
requests
japronto
and to do that you can simply run
$ pip3 install -r requirements.txt --upgrade
to run, you can simply run
$ nohup ./run.sh&
or alternatively create a systemd unit (it depends on your own decision!), however donot forget that the api.py
file should be ran at last.
thanks to Alireza Omidi for ircalevents.py
from iran-calendar-events which has been rewritten with async functions and added get_year_events
functions by me :)