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