Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Illia-the-coder committed Jun 18, 2023
1 parent fb57ed4 commit c7918cf
Showing 1 changed file with 87 additions and 6 deletions.
93 changes: 87 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# English

# Telegram Images Downloader and Notion Database Updater
![image](https://github.com/Illia-the-coder/Telegram-Notion-Image-Updater/assets/101904816/6d08bf33-e642-4654-9bbc-2d5fdd454a3c)

https://github.com/Illia-the-coder/Telegram-Notion-Image-Updater/assets/101904816/6d08bf33-e642-4654-9bbc-2d5fdd454a3c

This repository contains a Python script that downloads images from a Telegram group and updates a Notion database with the images.

# Scheme of scenario of code
![telegram-cloud-photo-size-2-5377771677544466740-y](https://github.com/Illia-the-coder/Telegram-Notion-Image-Updater/assets/101904816/f264c30e-9e0b-4bc8-a0a7-26c49a162c86)

https://github.com/Illia-the-coder/Telegram-Notion-Image-Updater/assets/101904816/f264c30e-9e0b-4bc8-a0a7-26c49a162c86

## Requirements

The following packages are required to run the script:
Expand All @@ -18,6 +24,7 @@ You can install these packages using pip:

```
pip install telethon notion-client pandas tqdm cloudinary
```

You will also need API keys for Telegram and Notion.
Expand All @@ -27,32 +34,106 @@ You will also need API keys for Telegram and Notion.
1. Clone the repository:

```
git clone https://github.com/Illia-the-coder/Telegram-Notion-Image-Updater.git
git clone <https://github.com/Illia-the-coder/Telegram-Notion-Image-Updater.git>
```

2. Set up environment variables for the API keys:
1. Set up environment variables for the API keys:

```
export API_ID=<Telegram API ID>
export API_HASH=<Telegram API HASH>
export NOTION_TOKEN=<Notion API Key>
export DatabaseID=<Notion Database ID>
export GROUP_USERNAME=<Telegram Group username>
```

3. Run the script:
1. Run the script:

```
python main.py
```

The script will download the images from the Telegram group and add them to the relevant pages in the Notion database. The script will also log information about the status of each step of the process.


## Customization

You can customize the script to fit your specific needs. For example, you can modify the filtering criteria for the Notion database, or change the directory to save the images.

## Conclusion

This script provides a simple solution for downloading images from a Telegram group and updating a Notion database with the images. By using this script, you can automate the process of updating your Notion database with the images from a Telegram group.

# Українською

# Завантажувач зображень Telegram і оновлювач бази даних Notion

https://github.com/Illia-the-coder/Telegram-Notion-Image-Updater/assets/101904816/6d08bf33-e642-4654-9bbc-2d5fdd454a3c

Цей репозиторій містить скрипт Python, який завантажує зображення з групи Telegram та оновлює базу даних Notion з зображеннями.

# Схема сценарію коду

https://github.com/Illia-the-coder/Telegram-Notion-Image-Updater/assets/101904816/f264c30e-9e0b-4bc8-a0a7-26c49a162c86

## Вимоги

Для запуску скрипту необхідні наступні пакети:

- telethon
- notion-client
- pandas
- tqdm
- cloudinary

Ви можете встановити ці пакети за допомогою pip:

```
pip install telethon notion-client pandas tqdm cloudinary
```

Вам також знадобляться ключі API для Telegram та Notion.

## Як користуватися

1. Клонуйте репозиторій:

```
git clone <https://github.com/Illia-the-coder/Telegram-Notion-Image-Updater.git>
```

1. Налаштуйте змінні середовища для ключів API:

```
export API_ID=<Telegram API ID>
export API_HASH=<Telegram API HASH>
export NOTION_TOKEN=<Notion API Key>
export DatabaseID=<Notion Database ID>
export GROUP_USERNAME=<Telegram Group username>
```

1. Запустіть скрипт:

```
python main.py
```

Скрипт завантажує зображення з групи Telegram та додає їх на відповідні сторінки бази даних Notion. Скрипт також реєструє інформацію про стан кожного кроку процесу.

## Налаштування

Ви можете налаштувати скрипт під свої потреби. Наприклад, ви можете змінити критерії фільтрації для бази даних Notion або змінити директорію для збереження зображень.

## Висновок

Цей скрипт забезпечує просте рішення для завантаження зображень з групи Telegram та оновлення бази даних Notion з зображеннями. Використовуючи цей скрипт, ви можете автоматизувати процес оновлення вашої бази даних Notion з зображеннями з групи Telegram.

# Завантажувач зображень Telegram та оновлювач бази даних Notion

У цьому репозиторії міститься скрипт на мові Python, що завантажує зображення з групи Telegram та оновлю

0 comments on commit c7918cf

Please sign in to comment.