# -*- coding: utf-8 -*- import json import glob import os from pathlib import Path root = str(Path(__file__).resolve().parent.parent / "extracted" / "apk_extract") needle = "this service has been temporarily blocked" for fp in glob.glob(os.path.join(root, "**", "en.json"), recursive=True): try: with open(fp, encoding="utf-8") as f: d = json.load(f) if not isinstance(d, dict): continue for k, v in d.items(): if isinstance(v, str) and needle in v.lower(): print(fp) print(k, "->", v) except Exception: pass