TeleParser
Simple parser for Telegram chats and channels with lemmatizer. Writes data in JSON, CSV and MongoDB. Your Telegram token required!
Install / Use
/learn @artmih24/TeleParserREADME
TeleParser
This is my project for parsing Telegram channels and chats and processing received data
❗️ IMPORTANT
Telegram has been updated API<br> DO NOT use this project until I will update it!<br> If You will try to use this project, You can loose Your Telegram account!
Requirements
- Python
3.12.0or earlier (CPython) - MongoDB
- Your Telegram API token, learn more <a href='https://core.telegram.org/api#getting-started'>here</a>
Get started
- Run <i>git clone</i>:
git clone https://github.com/artmih24/TeleParser.git - Go to project directory:
cd TeleParser - Create Python venv:
- on Windows:
python -m venv . - on Linux/macOS/other Unix-like OS:
python3 -m venv .
- on Windows:
- Select project Python venv:
- on Windows:
.\Scripts\activate - on Linux/macOS/other Unix-like OS:
source ./bin/activate
- on Windows:
- Install dependencies:
- on Windows:
pip install -r .\requirements.txt - on Linux/macOS/other Unix-like OS:
pip3 install -r ./requirements.txt
- on Windows:
- You can use setup scripts:
- on Windows:
or.\setup.cmd
or.\setup.bat.\setup.ps1 - on Linux/macOS/other Unix-like OS:
./setup.sh
- on Windows:
- Get your own Telegram API token <a href='https://core.telegram.org/api#getting-started'>here</a>
How to use
- Make sure that:
- You have received Your Telegram API token
- And You have replaced contents in
config.inifile by your Telegram API token
- Launch this script:
- on Windows:
python .\TeleParser.py - on Linux/macOS/other Unix-like OS:
python3 ./TeleParser.py - You can write channel or chat name (written after '@' or
t.me//https://t.me/) as command-line argument
- on Windows:
- Login in Telegram if You weren't logged in (trust me, this script doesn't steal your Telegram token, login and password)
- If You haven't written channel or chat name as command-line argument, enter channel or chat name (written after '@' or
t.me//https://t.me/) and press Enter key - Wait until this script will parse and process all data (it can take a lot of time, please be patient and wait) and press Enter key
- You can view all
.jsonand.csvfiles with received data and view all data in MongoDB database
WARNING
Don't give Your Telegram API token to anyone!
Related Skills
node-connect
331.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
81.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
331.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
81.5kCommit, push, and open a PR
