import os
import json

targets = [
    r'C:\Users\Daniil\Downloads\AyuGram Desktop\ChatExport_2026-11-22 (1)',
    r'C:\Users\Daniil\Downloads\AyuGram Desktop\ChatExport_2026-11-22',
    r'C:\Users\Daniil\Downloads\AyuGram Desktop\Костыль',
    r'C:\Users\Daniil\Downloads\AyuGram Desktop\Эксплойт',
    r'C:\Users\Daniil\Downloads\AyuGram Desktop\NN',
    r'C:\Users\Daniil\Downloads\AyuGram Desktop\Робот Сочинит Симфонию'
]

for t in targets:
    p = os.path.join(t, 'result.json')
    if not os.path.exists(p):
        print(f"File not found: {p}")
        continue
    size_mb = os.path.getsize(p) / (1024 * 1024)
    with open(p, 'r', encoding='utf-8') as f:
        head = f.read(3000)
    print(f"Folder: {os.path.basename(t)} ({size_mb:.2f} MB)")
    # Show first 10 lines
    lines = head.splitlines()[:15]
    for line in lines:
        print("  ", line)
    print("-" * 40)
