From b6f041b67a9b8d3cd7a033542e4a5cd6ca2c220f Mon Sep 17 00:00:00 2001 From: shuaikangzhou <863909694@qq.com> Date: Wed, 6 Dec 2023 21:29:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B4=E5=BA=A6=E5=88=86?= =?UTF-8?q?=E6=9E=90=E6=8A=A5=E5=91=8A=E7=AC=AC=E4=BA=8C=E9=A1=B5=E6=BA=A2?= =?UTF-8?q?=E5=87=BA=E7=9A=84=E9=97=AE=E9=A2=98#69?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/DataBase/msg.py | 8 +- app/analysis/analysis.py | 4 +- app/resources/resource_rc.py | 9511 +++++++++++++++++----------------- app/resources/stopwords.txt | 1 + app/web_ui/web.py | 16 +- readme.md | 2 +- requirements_pc.txt | 2 + 7 files changed, 4774 insertions(+), 4770 deletions(-) diff --git a/app/DataBase/msg.py b/app/DataBase/msg.py index 76a2919..a6bdc7e 100644 --- a/app/DataBase/msg.py +++ b/app/DataBase/msg.py @@ -126,19 +126,19 @@ class Msg: lock.release() return result - def get_messages_by_keyword(self, username_, keyword, num=5): + def get_messages_by_keyword(self, username_, keyword, num=5, max_len=10): if not self.open_flag: return None sql = ''' select localId,TalkerId,Type,SubType,IsSender,CreateTime,Status,StrContent,strftime('%Y-%m-%d %H:%M:%S',CreateTime,'unixepoch','localtime') as StrTime,MsgSvrID from MSG - where StrTalker=? and Type=1 and StrContent like ? + where StrTalker=? and Type=1 and LENGTH(StrContent) 声明:该项目有且仅有一个目的:“留痕”——我的数据我做主,前提是“我的数据”其次才是“我做主”,禁止任何人以任何形式将其用于任何非法用途,对于使用该程序所造成的任何后果,所有创作者不承担任何责任🙄
-> 该软件不会对您使用的微信造成任何影响,更不会对他人的微信造成任何影响,任何企图篡改微信聊天数据的想法都是无稽之谈。本项目所有功能均建立在”前言“的基础之上,基于该项目的所有开发者均不能接受任何有悖于”前言“的功能需求,违者后果自负。 +> 该软件不会对您使用的微信造成任何影响,更不会对他人的微信造成任何影响,不能找回删除的聊天记录,任何企图篡改微信聊天数据的想法都是无稽之谈。本项目所有功能均建立在”前言“的基础之上,基于该项目的所有开发者均不能接受任何有悖于”前言“的功能需求,违者后果自负。 [![Star History Chart](https://api.star-history.com/svg?repos=LC044/WeChatMsg&type=Date)](https://star-history.com/?utm_source=bestxtools.com#LC044/WeChatMsg&Date) diff --git a/requirements_pc.txt b/requirements_pc.txt index 85927c4..ed617a2 100644 --- a/requirements_pc.txt +++ b/requirements_pc.txt @@ -12,4 +12,6 @@ requests flask==3.0.0 pyecharts==2.0.1 jieba==0.42.1 +google==3.0.0 protobuf==4.25.1 +soupsieve==2.5