add: tools, secrets (safe files), updated gitignore

This commit is contained in:
“Naeel”
2026-06-30 15:47:38 +04:00
parent 250a8a6be2
commit fa427b3c70
20 changed files with 901 additions and 3 deletions
+22
View File
@@ -0,0 +1,22 @@
import json
har_path = '/home/naeel/terra/har/faststart.har'
op_id = 'c2e44fae-2a05-4955-867c-763da66b578e'
with open(har_path, 'r', encoding='utf-8') as f:
har_data = json.load(f)
entries = har_data['log']['entries']
for entry in entries:
url = entry['request']['url']
if op_id in url and entry['request']['method'] == 'GET':
res = entry['response']
text = res['content'].get('text')
if text:
try:
data = json.loads(text)
print(f"Time: {entry['startedDateTime']}")
print(json.dumps(data, indent=2))
except Exception as e:
print(f"Error: {e}")