Skip to content

CLI tool to extract Telegram channel statistics as JSON.

License

Notifications You must be signed in to change notification settings

orsinium-labs/telegram-stat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-stat

A CLI tool to extract Telegram channel statistics as ndJSON.

Installation

git clone https://github.com/orsinium-labs/telegram-stat.git
cd telegram-stat
python3 -m pip install -r requirements.txt

Usage

To get access to telegram API, you'll need api_id and api_hash that you can obtain at my.telegram.org.

Get statistics for @pythonetc:

python3 -m telegram_stat \
    --channel pythonetc \
    --api-id 12345
    --api-hash 1234567890abcdef \
    > pythonetc.ndjson

See top_posts.ipynb for an example on how to analyze the resulting data using pandas.