Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxkrivich/karazinnews-telegram-bot
Karazin University RSS/Atom telegram bot
https://github.com/maxkrivich/karazinnews-telegram-bot
herokuapp instant-view-generator nlp python3 rss-aggregator rss-bot rss-feed rss-feed-parser rss-feed-scraper rss-reader sqlalchemy telegram telegram-bots telegram-channels terraform terraform-cloud travis-ci
Last synced: 2 months ago
JSON representation
Karazin University RSS/Atom telegram bot
- Host: GitHub
- URL: https://github.com/maxkrivich/karazinnews-telegram-bot
- Owner: maxkrivich
- License: mit
- Created: 2017-08-01T16:20:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-05T09:13:35.000Z (about 4 years ago)
- Last Synced: 2023-02-27T05:46:38.290Z (almost 2 years ago)
- Topics: herokuapp, instant-view-generator, nlp, python3, rss-aggregator, rss-bot, rss-feed, rss-feed-parser, rss-feed-scraper, rss-reader, sqlalchemy, telegram, telegram-bots, telegram-channels, terraform, terraform-cloud, travis-ci
- Language: Python
- Homepage: https://telegram.me/karazina
- Size: 59.6 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KarazinNews RSS Telegram Bot
[![License](https://img.shields.io/badge/license-MIT%20license-green.svg?style=flat)]()
[![Telegram](https://img.shields.io/badge/telegram-channel-orange.svg?style=flat)](https://t.me/karazina)
[![Python](https://img.shields.io/badge/python-3.8-blue.svg?style=flat)]()
[![Requires.io](https://requires.io/github/maxkrivich/KarazinNews-telegram-bot/requirements.svg?branch=master&style=flat)](https://requires.io/github/maxkrivich/KarazinNews-telegram-bot/requirements/?branch=master)
[![Build Status](https://travis-ci.org/maxkrivich/KarazinNews-telegram-bot.svg?branch=master)](https://travis-ci.org/maxkrivich/KarazinNews-telegram-bot)This is an unofficial Telegram-bot for [V.N. Karazin University](http://univer.kharkov.ua/en) which aggregates several useful news sources for students of the Uni.
The main idea behind to get news from RSS-feeds and publish updates to a certain telegram [channel](https://t.me/karazina) where students could read it in a comfortable way from their mobile devices.![image](https://user-images.githubusercontent.com/12199867/101933467-87ac6c00-3bdc-11eb-97e9-9d2364435f98.png)
## Tech details
The bot has been written in Python 3.8 and deployed into Heroku Cloud with Travis CI.### Local testing
If you are interested in contributing to the project you are very welcome! In this section, you can find commands which help you to set up the project on your local machine.```bash
# step 0: Clone the repo
$ gh repo clone maxkrivich/KarazinNews-telegram-bot
$ cd KarazinNews-telegram-bot# step 1: Setup virtualenv for the project
$ virtualenv --python=python3.8 .venv
$ source .venv/bin/activate
$ pip install -r requirements-dev.txt
$ pre-commit install# step 2: Specify environment variables
$ cp .env.example .env
$ vim .env# step 3: DB setup
$ docker-compose -f docker-compose.dev.yaml up -d# step 4: Launch script
$ python run.py
```How to setup heroku api-key for `.travis.yml` using ruby travis gem.
```bash
$ brew install heroku/brew/heroku
$ heroku login
$ gem install travis
$ travis encrypt $(heroku auth:token) --add deploy.api_key
```How to setup database auto-backups.
```bash
# Schedule auto-backups
$ heroku pg:backups:schedule DATABASE_URL --at '02:00 Europe/Kiev' --app
# List of backups
$ heroku pg:backups:schedules --app
$ heroku pg:backups --app
$ heroku pg:backups:info --app
# Unschedule auto-backups
$ heroku pg:backups:unschedule DATABASE_URL --app
```If you find [bugs] or have [suggestions] about improving the module, don't hesitate to contact me.
## License
This project is licensed under the terms of the MIT license - see the [LICENSE](https://github.com/maxkrivich/KarazinNews-telegram-bot/blob/master/LICENSE) file for details
## Useful links
click here
https://www.terraform.io/docs/cloud/index.html
https://docs.travis-ci.com/user/deployment/heroku/https://devcenter.heroku.com/articles/getting-started-with-python
https://telegra.ph/
https://core.telegram.org/
https://docs.docker.com/compose/compose-file/
https://devcenter.heroku.com/articles/heroku-postgres-backups
#
Copyright (c) 2017-2020 - Maxim Krivich[bugs]:
[suggestions]: