# -*- 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()}')