mirror of
https://github.com/wtc86939209/WeChatMsg110.git
synced 2026-05-20 03:16:15 +08:00
新增PC数据库解密
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
@Version : Python3.10
|
||||
@comment : ···
|
||||
"""
|
||||
from . import data
|
||||
from . import output
|
||||
# from . import data
|
||||
# from . import output
|
||||
|
||||
__all__ = ["data", 'output']
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
@@ -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()
|
||||
Reference in New Issue
Block a user