Работу скрипта можно посмотреть тут:
Скрипт уведомляет о прогнозе погоды Астаны и Алматы (можно настроить и на другие города). Информацию о прогнозе погоды получает из OpenWeatherMap.
Клонируем репозитории
git clone https://github.com/daradan/weather_to_tg_chnl.git
Устанавливаем библиотеки
pip install -r requirements.txt
Создаем файл .env и заполняем свои данные
API_ID=...
TG_TOKEN=...
USER_AGENT=...
TG_CHANNEL_ASTANA=@...
TG_CHANNEL_ALMATY=@...
TG_CHANNEL_ERROR=...
You can see how the script works here:
This script notifies you about the weather in Astana and Almaty (can be configured for other cities). It gets information about the weather forecast from OpenWeatherMap.
Clone repositories
git clone https://github.com/daradan/weather_to_tg_chnl.git
Installing libraries
pip install -r requirements.txt
Create file .env and fill in your data
API_ID=...
TG_TOKEN=...
USER_AGENT=...
TG_CHANNEL_ASTANA=@...
TG_CHANNEL_ALMATY=@...
TG_CHANNEL_ERROR=...