An open API service indexing awesome lists of open source software.

https://github.com/exposedcat/tg-channels-parser

Telegram messenger posts parser
https://github.com/exposedcat/tg-channels-parser

Last synced: 4 months ago
JSON representation

Telegram messenger posts parser

Awesome Lists containing this project

README

          


Telegram Channels Parser

[![Developer](https://img.shields.io/badge/Developer-Telegram-blue?style=for-the-badge)](https://t.me/ExposedCat)
[![Cats](https://img.shields.io/badge/Cats-Meowgram%20V3-gold?style=for-the-badge)](https://t.me/MeowgramV3)

Creepy Cat


➕ See also




⭐️ Features




  • Universal parsing: all types of posts, with captions, including albums

  • Hidden reposting: removes «Forwarded from» label

  • Ads detection: does not repost forwards and posts with URLs

  • Simple running: 100% configuration placed in one config


⚙️ Stack




  • Language: Python 3.10

  • Telegram Client API library: Telethon 1.24


Running


1. Clone this repo:

```bash
git clone https://github.com/ExposedCat/tg-channels-parser.git
```

2. Go to project root:

```bash
cd tg-channels-parser
```

3. Rename `example.env` to `.env` and replace example data with with yours. API credentials should be registered here: [Telegram Apps Management](https://my.telegram.org/auth?to=apps)
4. Run app:

```bash
python3 src/main.py
```
Or you can use PM2 to run in background:

```bash
pm2 start src/main.py --interpreter=python3 --name=tgparser
```

**Done**.
You can stop PM2 process via

```bash
pm2 stop tgparser
```