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 ())
图书馆刚刚诞生,需要创造性和活力的支持。欢迎贡献!
对未来功能的想法:
记得要玩得开心! :)
该软件纯粹是为了好玩而制作的。任何非法或不道德的滥用软件的行为并不使作者承担后果。
您的,弗拉德·比利克