import json
import os

json_path = '/Users/Ediz/Desktop/kamilweb/tostum/menü/trendyol_menu_full (6).json'

with open(json_path, 'r', encoding='utf-8') as f:
    data = json.load(f)

products = data.get('products', [])

popular_titles = [
    "Salacak Tostu", "Tostum Special Tost", "Chef Kamil Tostu", 
    "Şantiye Kavurmalı", "Avokadolu Tost", "Bazlamalı Tostum Special"
]

popular_products = [p for p in products if p['title'] in popular_titles]
for p in popular_products:
    print(f"{p['title']}: {p.get('imageUrl')} - {p.get('category')} - {p.get('description')}")

print(f"\nTotal products: {len(products)}")
categories = set(p.get('category') for p in products)
print(f"Categories: {categories}")
