This commit is contained in:
Envy_PC 2024-05-18 07:44:02 +09:00
parent 4f7fd9c20b
commit 10d7991516
2 changed files with 20 additions and 20 deletions

View File

@ -171,11 +171,11 @@ class MainWindow(QMainWindow):
self.market_info_label = QLabel('마켓 정보')
self.market_info_cc_btn = QPushButton('쿠팡')
self.market_info_cc_label = QLabel('------')
self.market_info_ss_btn = QPushButton('')
self.market_info_ss_btn = QPushButton('마트토어')
self.market_info_ss_label = QLabel('------')
self.market_info_dm11_btn = QPushButton('11국내')
self.market_info_dm11_btn = QPushButton('11번가-국내')
self.market_info_dm11_label = QLabel('------')
self.market_info_gb11_btn = QPushButton('11해외')
self.market_info_gb11_btn = QPushButton('11번가-글로벌')
self.market_info_gb11_label = QLabel('------')
self.market_info_esm_btn = QPushButton('ESM')
self.market_info_esm_label = QLabel('------')
@ -248,9 +248,9 @@ class MainWindow(QMainWindow):
# 체크박스만 추가
self.all_checkbox = QCheckBox("전체 체크")
self.cp_checkbox = QCheckBox("쿠팡")
self.ss_checkbox = QCheckBox("")
self.ss_checkbox = QCheckBox("마트토어")
self.st11_dm_checkbox = QCheckBox("11번가-국내")
self.st11_gb_checkbox = QCheckBox("11번가-해외")
self.st11_gb_checkbox = QCheckBox("11번가-글로벌")
self.esm_checkbox = QCheckBox("ESM")
self.lton_checkbox = QCheckBox("롯데온")
self.ip_checkbox = QCheckBox("인터파크")
@ -399,9 +399,9 @@ class MainWindow(QMainWindow):
# 마켓 정보 업데이트
market_buttons = [
(self.market_info_cc_btn, '쿠팡', self.market_info_cc_label),
(self.market_info_ss_btn, '', self.market_info_ss_label),
(self.market_info_ss_btn, '마트토어', self.market_info_ss_label),
(self.market_info_dm11_btn, '11번가-국내', self.market_info_dm11_label),
(self.market_info_gb11_btn, '11번가-해외', self.market_info_gb11_label),
(self.market_info_gb11_btn, '11번가-글로벌', self.market_info_gb11_label),
(self.market_info_esm_btn, 'ESM', self.market_info_esm_label),
(self.market_info_lton_btn, '롯데온', self.market_info_lton_label),
(self.market_info_ip_btn, '인터파크', self.market_info_ip_label),
@ -446,7 +446,7 @@ class MainWindow(QMainWindow):
'애플리케이션 ID': 'example_application_id',
'애플리케이션 시크릿': 'example_application_secret'
},
'옥션지마켓': {
'ESM': {
'옥션ID': 'example_auction_id',
'G마켓 ID': 'example_gmarket_id'
},

View File

@ -68,7 +68,7 @@ class PlaywrightHelper:
'애플리케이션 ID': "div#rc-tabs-0-panel-ss div:nth-child(3) > input",
'애플리케이션 시크릿': "div#rc-tabs-0-panel-ss div:nth-child(3) > input",
},
'옥션지마켓': {
'ESM': {
'옥션ID': "div#rc-tabs-0-panel-esm div:nth-child(1) > input",
'G마켓 ID': "div#rc-tabs-0-panel-esm div:nth-child(2) > input",
},
@ -113,39 +113,39 @@ class PlaywrightHelper:
}
api_keys['쿠팡'] = await fetch_market_api_keys("div#rc-tabs-0-tab-cp", api_key_xpaths['쿠팡'])
# print(f"api_keys['쿠팡'] \n {api_keys['쿠팡']}")
print(f"api_keys['쿠팡'] \n {api_keys['쿠팡']}")
progress_bar.setValue(35)
status_label.setText('현재 상태: 쿠팡 가져오기 완료')
api_keys['스마트스토어'] = await fetch_market_api_keys("div#rc-tabs-0-tab-ss", api_key_xpaths['스마트스토어'])
# print(f"api_keys['스마트스토어'] \n {api_keys['스마트스토어']}")
print(f"api_keys['스마트스토어'] \n {api_keys['스마트스토어']}")
progress_bar.setValue(40)
status_label.setText('현재 상태: 스마트스토어 가져오기 완료')
api_keys['옥션지마켓'] = await fetch_market_api_keys("div#rc-tabs-0-tab-esm", api_key_xpaths['옥션지마켓'])
# print(f"api_keys['옥션지마켓'] \n {api_keys['옥션지마켓']}")
api_keys['ESM'] = await fetch_market_api_keys("div#rc-tabs-0-tab-esm", api_key_xpaths['ESM'])
print(f"api_keys['ESM'] \n {api_keys['ESM']}")
progress_bar.setValue(45)
status_label.setText('현재 상태: ESM 가져오기 완료')
api_keys['11번가-일반'] = await fetch_market_api_keys("div#rc-tabs-0-tab-est", api_key_xpaths['11번가-일반'])
# print(f"api_keys['11번가-일반'] \n {api_keys['11번가-일반']}")
print(f"api_keys['11번가-일반'] \n {api_keys['11번가-일반']}")
progress_bar.setValue(50)
status_label.setText('현재 상태: 11번가 국내 가져오기 완료')
api_keys['11번가-글로벌'] = await fetch_market_api_keys("div#rc-tabs-0-tab-est_global", api_key_xpaths['11번가-글로벌'])
# print(f"api_keys['11번가-글로벌'] \n {api_keys['11번가-글로벌']}")
print(f"api_keys['11번가-글로벌'] \n {api_keys['11번가-글로벌']}")
progress_bar.setValue(55)
status_label.setText('현재 상태: 11번가 글로벌 가져오기 완료')
api_keys['롯데온'] = await fetch_market_api_keys("div#rc-tabs-0-tab-lotteon", api_key_xpaths['롯데온'])
# print(f"api_keys['롯데온'] \n {api_keys['롯데온']}")
print(f"api_keys['롯데온'] \n {api_keys['롯데온']}")
progress_bar.setValue(60)
status_label.setText('현재 상태: 롯데온 가져오기 완료')
api_keys['인터파크'] = await fetch_market_api_keys("div#rc-tabs-0-tab-ip", api_key_xpaths['인터파크'])
# print(f"api_keys['인터파크'] \n {api_keys['인터파크']}")
print(f"api_keys['인터파크'] \n {api_keys['인터파크']}")
progress_bar.setValue(65)
status_label.setText('현재 상태: 인터파크 가져오기 완료')
api_keys['위메프'] = await fetch_market_api_keys("div#rc-tabs-0-tab-wmp", api_key_xpaths['위메프'])
# print(f"api_keys['위메프'] \n {api_keys['위메프']}")
print(f"api_keys['위메프'] \n {api_keys['위메프']}")
progress_bar.setValue(70)
status_label.setText('현재 상태: 위메프 가져오기 완료')
api_keys['옥션1.0'] = await fetch_market_api_keys("div#rc-tabs-0-tab-at", api_key_xpaths['옥션1.0'])
# print(f"api_keys['옥션1.0'] \n {api_keys['옥션1.0']}")
print(f"api_keys['옥션1.0'] \n {api_keys['옥션1.0']}")
progress_bar.setValue(75)
status_label.setText('현재 상태: 옥션1.0 가져오기 완료')
@ -190,7 +190,7 @@ class PlaywrightHelper:
progress_bar.setValue(40)
status_label.setText('현재 상태: 스마트스토어 업데이트 완료')
await update_market_api_keys("div#rc-tabs-0-tab-esm", api_keys['옥션지마켓'])
await update_market_api_keys("div#rc-tabs-0-tab-esm", api_keys['ESM'])
progress_bar.setValue(45)
status_label.setText('현재 상태: ESM 업데이트 완료')