import json, re d = json.load(open('plug_raw.json')) txt = ' '.join(d.get('cells', [])) m = re.search(r'P1:(a:34:.*)', txt) s = m.group(1) if m else '' s = s.split('Poka')[0] plugins = re.findall(r's:\d+:\+"([^"\]+\.php)\+"', s) if not plugins: plugins = re.findall(r'"([a-z0-9\-_]+/[a-z0-9\-_]+\.php)"', s) print(len(plugins)) for p in plugins: print(p)