新增PC数据库解密

This commit is contained in:
shuaikangzhou
2023-11-12 21:51:33 +08:00
parent 20b4b91366
commit ff482fc5e1
20 changed files with 1347 additions and 69 deletions

23
app/DataBase/micro_msg.py Normal file
View File

@@ -0,0 +1,23 @@
import sqlite3
from pprint import pprint
DB = sqlite3.connect("./de_MicroMsg.db", check_same_thread=False)
# '''创建游标'''
cursor = DB.cursor()
def get_contact():
sql = '''select UserName,Alias,Type,Remark,NickName,PYInitial,RemarkPYInitial,ContactHeadImgUrl.smallHeadImgUrl,ContactHeadImgUrl.bigHeadImgUrl
from Contact inner join ContactHeadImgUrl on Contact.UserName = ContactHeadImgUrl.usrName
where Type=3 and Alias is not null
order by PYInitial
'''
cursor.execute(sql)
result = cursor.fetchall()
pprint(result)
print(len(result))
return result
if __name__ == '__main__':
get_contact()