add auto get bias addr ,not need input key or wx folder path.

This commit is contained in:
xaoyo 2023-10-24 18:33:30 +08:00
parent 29584ab35a
commit 6ddf86fd99
3 changed files with 6 additions and 3 deletions

View File

@ -8,9 +8,9 @@
import os
import re
import winreg
from typing import List, Union
def get_wechat_db(require_list: [list | str] = "all", msg_dir: str = None):
def get_wechat_db(require_list: Union[List[str], str] = "all", msg_dir: str = None):
if not msg_dir:
try:
key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Tencent\WeChat", 0, winreg.KEY_READ)

View File

@ -3,7 +3,7 @@ from setuptools import setup, find_packages
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
version = "2.1.5"
version = "2.1.6"
setup(
name="pywxdump",
author="xaoyaoo",

View File

@ -5,3 +5,6 @@
# Author: xaoyaoo
# 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)