Telegram anal
0.1.1 release, WORDCLOUDS and NLP
Telegram 分析是一個 Python 包,可以幫助您享受樂趣並理解您擁有的不同聊天資料。基於 Pyrogram,它的使命是幫助您享受 Telegram 及其功能的樂趣。無論是玩群組聊天對話框還是分析您的業務、個人聊天甚至保存的訊息的群組動態。
發揮創意並在現成的解決方案之上建立! ?
目前功能(版本 0.1.1):
? wordcloud_json()
從聊天中創造有趣的詞雲
? who_breaks_silence_json()
分析誰傾向於打破聊天中的沉默並先寫
?❤measure_top_reactions measure_top_reactions()
測量誰的訊息反應最強烈並選擇特定的反應!
pip install telegram-anal
該庫使用 Pyrogram 來處理 Telegram,因此您需要透過以下方式進行標準身份驗證:
import asyncio
from telenal . client import Client
from telenal . reactions import measure_top_reactions
from telenal . teleplotter import plot_bars_from_dict
async def main ():
client = Client ( "my_account" , "your_api_id" , "your_api_hash" )
tops = await measure_top_reactions (
client ,
chat_name = "Family chat :)" ,
search_emojis = [ "?" , "?" , "?" ],
)
plot_bars_from_dict ( tops ) # <-- get a bar chart out of the box
if __name__ == "__main__" :
asyncio . run ( main ())
圖書館剛誕生,需要創意和活力的支持。請隨意貢獻!
對未來功能的想法:
記得要玩得開心! :)
該軟體純粹是為了好玩而製作的。任何非法或不道德的濫用該軟體的行為並不使作者承擔後果。
您的,弗拉德·比利克