test 聊天记录分析
This commit is contained in:
1 parent
c8d7543fbb
commit
fbc6a7ff4f
2 files changed
+62
-1
No files matched your search
+22
-1
@@ -22,7 +22,7 @@ from pywxdump.api.utils import read_session, get_session_wxids, save_session, er
|
||||
from pywxdump import read_info, VERSION_LIST, batch_decrypt, BiasAddr, merge_db, decrypt_merge, merge_real_time_db
|
||||
|
||||
from pywxdump.dbpreprocess import wxid2userinfo, ParsingMSG, get_user_list, get_recent_user_list, ParsingMediaMSG, \
|
||||
download_file,export_csv, export_json
|
||||
download_file, export_csv, export_json
|
||||
from pywxdump.dbpreprocess.utils import dat2img
|
||||
|
||||
# app = Flask(__name__, static_folder='../ui/web/dist', static_url_path='/')
|
||||
@@ -744,6 +744,27 @@ def get_export_json():
|
||||
|
||||
# end 导出聊天记录 *******************************************************************************************************
|
||||
|
||||
# start 聊天记录分析api **************************************************************************************************
|
||||
|
||||
@api.route('/api/date_count', methods=["GET", 'POST'])
|
||||
@error9999
|
||||
def get_date_count():
|
||||
"""
|
||||
获取日期统计
|
||||
"""
|
||||
my_wxid = read_session(g.sf, "test", "last")
|
||||
if not my_wxid: return ReJson(1001, body="my_wxid is required")
|
||||
merge_path = read_session(g.sf, my_wxid, "merge_path")
|
||||
date_count = ParsingMSG(merge_path).date_count()
|
||||
return ReJson(0, date_count)
|
||||
|
||||
|
||||
@api.route('/api/wordcloud', methods=["GET", 'POST'])
|
||||
@error9999
|
||||
def wordcloud():
|
||||
pass
|
||||
|
||||
|
||||
# start 这部分为专业工具的api *********************************************************************************************
|
||||
|
||||
@api.route('/api/wxinfo', methods=["GET", 'POST'])
|
||||
|
||||
Reference in new issue
Block a user