Files
_Geulbeot/02. Prompts/문서생성/codedomain/설명이_없습니다_Python_v01.py

7 lines
285 B
Python

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 "설명이 없습니다."