Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mavahedinia/ircalevents-api
an api written with japronto which fetches calendar events from time.ir with scraping method!
https://github.com/mavahedinia/ircalevents-api
Last synced: 27 days ago
JSON representation
an api written with japronto which fetches calendar events from time.ir with scraping method!
- Host: GitHub
- URL: https://github.com/mavahedinia/ircalevents-api
- Owner: mavahedinia
- License: gpl-3.0
- Created: 2017-06-09T08:01:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T23:57:00.000Z (about 2 years ago)
- Last Synced: 2024-12-07T01:16:18.204Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IrCalEvents API
an api written in japronto which fetches calendar events from time.ir with scraping method!## Installation
First it is better to have an virtual environment for app to be running! so run
```bash
$ 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
```bash
$ pip3 install -r requirements.txt --upgrade
```## Running
to run, you can simply run
```bash
$ 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.## Credits
thanks to **Alireza Omidi** for `ircalevents.py` from [iran-calendar-events](https://github.com/alirezaomidi/iran-calendar-events) which has been rewritten with async functions and added `get_year_events` functions by me :)