📦 Initialize Geulbeot structure and merge Prompts & test projects
This commit is contained in:
7
02. Prompts/문서생성/codedomain/설명이_없습니다_Python_v01.py
Normal file
7
02. Prompts/문서생성/codedomain/설명이_없습니다_Python_v01.py
Normal file
@@ -0,0 +1,7 @@
|
||||
def get_detail_content(detail_url):
|
||||
res = requests.get(detail_url)
|
||||
soup = BeautifulSoup(res.text, 'html.parser')
|
||||
div = soup.find('div', {'data-v-5cb2d9fe': True})
|
||||
if div and div.find('h2'):
|
||||
return div.find('h2').text.strip()
|
||||
return "설명이 없습니다."
|
||||
Reference in New Issue
Block a user