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

g = GeoYoungSession()
g.login()

for keyword in ['라식스', '코자정', '아스피린']:
    r = g.search_products(keyword)
    print(f"\n{keyword} 검색:")
    if r.get('items'):
        for item in r['items'][:2]:
            print(f"  {item['name'][:30]} | code: {item.get('product_code', '?')}")
    else:
        print("  없음")
