All Projects → okainov → munich-scripts

okainov / munich-scripts

Licence: MIT License
Some useful scripts simplifying bureaucracy

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to munich-scripts

Skraper
Kotlin/Java library and cli tool for scraping posts and media from various sources with neither authorization nor full page rendering (Facebook, Instagram, Twitter, Youtube, Tiktok, Telegram, Twitch, Reddit, 9GAG, Pinterest, Flickr, Tumblr, IFunny, VK, Pikabu)
Stars: ✭ 72 (-31.43%)
Mutual labels:  scraper, telegram
Informer
A Telegram Mass Surveillance Bot in Python
Stars: ✭ 745 (+609.52%)
Mutual labels:  scraper, telegram
Gosint
OSINT Swiss Army Knife
Stars: ✭ 401 (+281.9%)
Mutual labels:  scraper, telegram
gesetze-tools
Scripts to maintain German law git repository
Stars: ✭ 99 (-5.71%)
Mutual labels:  scraper, germany
node-telegram-operation-manager
A utility to manage bots reply flows and commands
Stars: ✭ 21 (-80%)
Mutual labels:  telegram
cfworker-middware-telegraf
Make telegraf (a telegram bot framework) useable in Cloudflare Workers
Stars: ✭ 23 (-78.1%)
Mutual labels:  telegram
dolarPy
Checks USD/PYG exchange rate from several sites, with a calculator, RESTful API and a twitter bot
Stars: ✭ 45 (-57.14%)
Mutual labels:  scraper
ioBroker.backitup
Backitup enables the cyclical creation of backups of an IoBroker / Homematic installation
Stars: ✭ 43 (-59.05%)
Mutual labels:  telegram
TradingTool-Wiki
Wiki for all TradingToolCrypto Products. MetaTrader 5 trading tools: Indicators, robots, risk management, signals, custom coding, CrptoBridgePro , and more
Stars: ✭ 26 (-75.24%)
Mutual labels:  telegram
gunstore.io
Store your data in Gun DB by sending simple HTTP requests - based on jsonstore.io 💾 🚀
Stars: ✭ 32 (-69.52%)
Mutual labels:  simple
SmudgeLord
SmudgeLord tgBot source code.
Stars: ✭ 19 (-81.9%)
Mutual labels:  telegram
luxmed-bot
Non official telegram bot for Portal Pacjenta LUX MED
Stars: ✭ 24 (-77.14%)
Mutual labels:  telegram
keyboa
Keyboa is a project designed to simplify Telegram keyboards creation.
Stars: ✭ 24 (-77.14%)
Mutual labels:  telegram
node-tg-native
Telegram Native lib
Stars: ✭ 22 (-79.05%)
Mutual labels:  telegram
campr
Campr Workspace App
Stars: ✭ 33 (-68.57%)
Mutual labels:  germany
PDF-Bot
A bot for PDF for doing Many Things....
Stars: ✭ 38 (-63.81%)
Mutual labels:  telegram
webhook-aiogram-heroku
A sample telegram bot made with aiogram, that fetches updates using the web-hook connection. Can be easily deployed to Heroku.
Stars: ✭ 36 (-65.71%)
Mutual labels:  telegram
SocialInfo4J
fetch data from Facebook, Instagram and LinkedIn
Stars: ✭ 44 (-58.1%)
Mutual labels:  scraper
Xtra-Plugins
A Repo Full Of Xtra Plugins For FridayUB [Pyrogram]
Stars: ✭ 25 (-76.19%)
Mutual labels:  telegram
emacs-china-bot
emacs-china rss bot
Stars: ✭ 17 (-83.81%)
Mutual labels:  telegram

General

Some useful scripts simplifying bureaucracy, especially when living in Munich, Germany.

termin_api.py

Small tool to show availability of appointments in different Departments of Munich.

Available departments are:

Please note the script does not perform appointment booking (see #4), it just tells you current status and allows you to subscribe to a notifier for one week.

Telegram bot

There is a Telegram bot at @MunichTerminBot using termin_api.py functionality. The bot is written using python-telegram-bot library. Source code is also in this repo, tg_bot.py.

Development

By default bot runs as webhook configured for personal web server. For local development it's easier to use polling. In order to get it, just set DEBUG = True in one of first lines of the script.

Bot deployment

Bot is hosted on personal web server, running in Docker and automatic deploy from master branch of this repo is set, no action should be required.

Manual deployment

Pre-requisites:

  • TG_TOKEN environment variable is set in .env file

If you want to enable Elastic statistics, then additionally set following variables to non-empty value:

  • ELASTIC_HOST - hostname where ELK stack is deployed
  • ELASTIC_USER - ElasticSearch username
  • ELASTIC_PASS - ElasticSearch password

Commands for manual deploy

git pull
docker-compose build
docker-compose up -d

Shortly after deploy make sure everything is running

docker-compose logs -f

Script usage

Edit script content and select what type of appointments you actually need:

appointments = get_termins(DMV, 'FS Umschreibung Ausländischer FS')
# appointments = get_termins(CityHall, 'An- oder Ummeldung - Einzelperson')
# appointments = get_termins(ForeignLabor, 'Niederlassungserlaubnis Blaue Karte EU')

Run the script

python3 termin_api.py

Output will be printed in the console

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].