17 lines
552 B
Python
17 lines
552 B
Python
# -*- coding: utf-8 -*-
|
|
import requests
|
|
|
|
# 메게이스 검색
|
|
res = requests.get('http://localhost:7001/api/geoyoung/stock?keyword=메게이스', timeout=30).json()
|
|
|
|
print("=== 지오영 메게이스 검색 결과 ===")
|
|
for item in res.get('items', []):
|
|
internal = item.get('internal_code', '')
|
|
spec = item.get('specification', '')
|
|
name = item.get('product_name', '')[:35]
|
|
kd = item.get('insurance_code', '')
|
|
print(f" 내부코드: {internal:8} | KD: {kd} | spec: {spec:6} | {name}")
|
|
|
|
print()
|
|
print("찾는 내부코드: 043735")
|