📦 Initialize Geulbeot structure and merge Prompts & test projects
This commit is contained in:
13
02. Prompts/문서생성/codedomain/국토일보_한건신문_Python_v01.py
Normal file
13
02. Prompts/문서생성/codedomain/국토일보_한건신문_Python_v01.py
Normal file
@@ -0,0 +1,13 @@
|
||||
def format_date(date_str, source):
|
||||
try:
|
||||
if source in ["국토일보", "한건신문"]:
|
||||
# 기자 이름과 함께 있는 날짜 형식 처리
|
||||
date_obj = re.search(r'\d{4}-\d{2}-\d{2}', date_str)
|
||||
if date_obj:
|
||||
return date_obj.group(0)
|
||||
elif source in ["엔지니어링데일리", "건설이코노미뉴스", "공학저널"]:
|
||||
# 기자 이름과 함께 있는 날짜 형식 처리
|
||||
date_obj = re.search(r'\d{4}-\d{2}-\d{2}', date_str)
|
||||
if date_obj:
|
||||
return date_obj.group(0)
|
||||
elif source == "연합
|
||||
Reference in New Issue
Block a user