# -*- coding: utf-8 -*-
import sys; sys.path.insert(0, '.'); import wholesale_path
from wholesale import GeoYoungSession

g = GeoYoungSession()
g.login()

for kw in ['베아제', '신신파스', '마그밀', '활명수', '트라스트', '카베진']:
    r = g.search_products(kw)
    if r.get('items'):
        item = r['items'][0]
        print(f"{kw}: {item['name'][:30]} (code: {item.get('internal_code')})")
    else:
        print(f"{kw}: 없음")
