This commit is contained in:
parent
32f9f27330
commit
f0beaf1a87
|
|
@ -1026,15 +1026,15 @@ class TitleGenerator:
|
|||
str: 원본 상품명 텍스트
|
||||
"""
|
||||
try:
|
||||
self.logger.log("원본 수집상품명을 가져오는 중입니다.", level=logging.DEBUG)
|
||||
self.logger.log("수집상품명을 가져오는 중입니다.", level=logging.DEBUG)
|
||||
elements = await self.page.query_selector_all(self.collection_product_name_locator)
|
||||
first_element = elements[0]
|
||||
collection_name = await first_element.input_value() if first_element else ""
|
||||
|
||||
self.logger.log(f"원본 수집상품명: {collection_name}", level=logging.DEBUG)
|
||||
self.logger.log(f"수집상품명: {collection_name}", level=logging.DEBUG)
|
||||
return collection_name
|
||||
except Exception as e:
|
||||
self.logger.log(f"원본 수집상품명 가져오기 중 오류 발생: {e}", level=logging.ERROR, exc_info=True)
|
||||
self.logger.log(f"수집상품명 가져오기 중 오류 발생: {e}", level=logging.ERROR, exc_info=True)
|
||||
return ""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue