Using this crawler, you can crawl telegram channels, groups or your private chats. Chats will be saved in SQLite database and text file. You can query in database with different parameters like channel names, group names, telegram usernames, telegram unique ids and etc.
Works with Python 3.3+.
Install dependencies using this command:
pip install -r requirements
and if you don't have sqlite3, install it:
sudo apt-get install sqlite3
For running this cute crawler, first you need to compile my forked version of tg CLI. I fixed some of tg issues that cause tg to crash. After compiling tg with make
command, run it using the following command:
./bin/telegram-cli -k server_pub -p 4458 --json
then run the crawler:
python crawler.py