Repository navigation
v0.0.3
✨ 新增
-
账号类型识别 —
ArticleResult新增mp_account_type字段,自动从页面中的new_service_type提取(0/1→ 订阅号,2→ 服务号) -
AccountType枚举 — 从包根导出AccountType(继承自str的 Enum),既可按枚举比较也可按中文字符串比较:from wechat_article_parser import parse, AccountType result = parse("https://mp.weixin.qq.com/s/xxxxx") if result.mp_account_type == AccountType.SERVICE: print("这是服务号") print(f"账号类型: {result.mp_account_type}") # 订阅号 / 服务号