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
このライブラリは Telegram の処理に Pyrogram を使用するため、次の方法で標準的に認証する必要があります。
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 ())
図書館は新しく誕生したばかりで、創造的かつ精力的なサポートが必要です。気軽に貢献してください!
将来の機能に関するアイデア:
楽しむことを忘れないでください! :)
このソフトウェアは純粋に楽しむために作られています。ソフトウェアの違法または非道徳的な悪用が、その結果に対して作者に責任を負わせることはありません。
よろしく、ヴラド・ビリク