whatsapplib
v0.0.5
顧名思義,這是WhatsApp組聊天分析軟件包。它基本上將幫助程序員從WhatsApp組聊天中生成視覺見解。您不需要做任何事情,只需導出組聊天,然後使用此軟件包來生成或創建漂亮的不同不同圖表。在這裡,您不必擔心任何事情,它在內部會為您帶來一切。它將執行ETL(提取轉換載荷) ,並最終以視覺效果的形式生成洞察力。大約有。有15種以上的方法可用來幫助您生成洞察力,即使您可以下載每個洞察力。
鏈接:https://pypi.org/project/whatsapplib/0.0.5/
這些方法在下面列出:
使用軟件包管理器PIP安裝所有要求。只需按照以下命令:
pip install WhatsappLib==0.0.5
請記住:您的數據必須以下面的形式如下所述,如果不是,請嘗試以給定格式轉換數據。是的,如果將您的時間段指定為am'&'pm'格式,則需要在較低案例'am'&'pm'格式中更改它們。我將解決此問題並儘快更新此軟件包。

# importing the required libraries
from WhatsappLib . whatsapplib . preprocess import analysis
# you need to do just one simple step, create object of Analyzer class and pass location-
# of directory as parameter which is mendatory.
obj = analysis ( r'*Sample.txt' )
# Now use this reference variable (obj) to access this methods.
total_users , total_messages , media_messages , links = obj . basicStats () # it is returning 4 parameters
print ( 'Total No. of users : ' , total_users )
print ( 'Total No. messages sent : ' , total_messages )
print ( 'Total No. of media messages sent : ' , media_messages )
print ( 'Total No. of link shared : ' , links )
obj . wordCloud_in ( user = '+91 83900 8' , save_fig = 'y' )
obj . mostActiveUsers ( save_fig = 'y' )
obj . mostActiveDay ( save_fig = 'y' )
obj . topMediaContributor ( save_fig = 'N' )
obj . maxWordContributers ( save_fig = 'y' )
obj . maxURLContributers ( save_fig = 'N' )
obj . mostActiveTime ()
obj . mostSuitableHours ( save_fig = 'y' )
obj . highlyActiveDates ( save_fig = 'N' )
obj . timeseriesAnalysis ( save_fig = 'y' )
obj . activeMonthsB ( save_fig = 'N' )
obj . maxEmojiUsers ( save_fig = 'y' )
obj . activeMonthsT ()
obj . trafficPerYear ( save_fig = 'N' )
obj . weekdaysTraffic ( save_fig = 'y' )
top_emojis = obj . topEmojis_G () # returning pandas dataframe
obj . saveDatframe () # saving the dataframe
top_emojis_i = obj . topEmojis_I ( '+91 81*** 00***' ) # returning pandas dataframe
# Again Note :) : In some methods you need to pass "User" as a parameter which is mandatory, some methods-
# are taking "save_fig" parameter to save the figure in current directory, which is optional, if you want to-
# download the figure or plot you can tweak the parameter.樣本輸出:




這是我對Python社區的小型開源貢獻。隨時在LinkedIn上連接我。要查看我驚人的博客,請單擊此處。
由羅尼爾製成的