add auto get bias addr ,not need input key or wx folder path.
This commit is contained in:
parent
29584ab35a
commit
6ddf86fd99
@ -8,9 +8,9 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import winreg
|
import winreg
|
||||||
|
from typing import List, Union
|
||||||
|
|
||||||
|
def get_wechat_db(require_list: Union[List[str], str] = "all", msg_dir: str = None):
|
||||||
def get_wechat_db(require_list: [list | str] = "all", msg_dir: str = None):
|
|
||||||
if not msg_dir:
|
if not msg_dir:
|
||||||
try:
|
try:
|
||||||
key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Tencent\WeChat", 0, winreg.KEY_READ)
|
key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Tencent\WeChat", 0, winreg.KEY_READ)
|
||||||
|
2
setup.py
2
setup.py
@ -3,7 +3,7 @@ from setuptools import setup, find_packages
|
|||||||
with open("README.md", "r", encoding="utf-8") as fh:
|
with open("README.md", "r", encoding="utf-8") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
version = "2.1.5"
|
version = "2.1.6"
|
||||||
setup(
|
setup(
|
||||||
name="pywxdump",
|
name="pywxdump",
|
||||||
author="xaoyaoo",
|
author="xaoyaoo",
|
||||||
|
@ -5,3 +5,6 @@
|
|||||||
# Author: xaoyaoo
|
# Author: xaoyaoo
|
||||||
# Date: 2023/10/21
|
# Date: 2023/10/21
|
||||||
# -------------------------------------------------------------------------------
|
# -------------------------------------------------------------------------------
|
||||||
|
from pywxdump import get_wechat_db
|
||||||
|
user_dirs = get_wechat_db(require_list=["MediaMSG", "MicroMsg", "FTSMSG", "MSG", "Sns", "Emotion"])
|
||||||
|
print(user_dirs)
|
Loading…
Reference in New Issue
Block a user