- wholesale 패키지 연동 (SooinSession, GeoYoungSession) - Flask Blueprint 분리 (sooin_api.py, geoyoung_api.py) - order_context 스키마 확장 (wholesaler_id, internal_code 등) - 수인약품 개별 취소 기능 (cancel_item, restore_item) - 문서 추가: WHOLESALE_API_INTEGRATION.md - 테스트 스크립트들
33 lines
859 B
Python
33 lines
859 B
Python
# -*- coding: utf-8 -*-
|
|
from sooin_api import SooinSession
|
|
import re
|
|
|
|
session = SooinSession()
|
|
session.login()
|
|
|
|
resp = session.session.get('http://sooinpharm.co.kr/Service/Order/Bag.asp?currVenCd=50911')
|
|
|
|
# 개별 삭제 관련 찾기
|
|
html = resp.text
|
|
|
|
# kind 파라미터 종류
|
|
kinds = re.findall(r'kind=(\w+)', html)
|
|
print('kind 파라미터들:', list(set(kinds)))
|
|
|
|
# 체크박스 관련 함수
|
|
if 'chk_' in html:
|
|
print('\n체크박스 있음 (chk_0, chk_1 등)')
|
|
|
|
# delOne 같은 개별 삭제
|
|
if 'delOne' in html or 'deleteOne' in html:
|
|
print('개별 삭제 함수 있음')
|
|
|
|
# 선택삭제 버튼
|
|
if '선택삭제' in html or '선택 삭제' in html:
|
|
print('선택삭제 버튼 있음')
|
|
|
|
# 전체 삭제 URL
|
|
del_url = re.search(r'BagOrder\.asp\?kind=del[^"\'>\s]*', html)
|
|
if del_url:
|
|
print(f'\n전체 삭제 URL: {del_url.group()}')
|