Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def gradio_fetch_and_parse(url):
|
|
24 |
def get_main_content(html_content):
|
25 |
soup = BeautifulSoup(html_content, 'html.parser')
|
26 |
# <script> 태그를 찾아 본문 콘텐츠 추출
|
27 |
-
scripts = soup.find_all('
|
28 |
text = ''
|
29 |
for script in scripts:
|
30 |
if script.string:
|
|
|
24 |
def get_main_content(html_content):
|
25 |
soup = BeautifulSoup(html_content, 'html.parser')
|
26 |
# <script> 태그를 찾아 본문 콘텐츠 추출
|
27 |
+
scripts = soup.find_all('meta content')
|
28 |
text = ''
|
29 |
for script in scripts:
|
30 |
if script.string:
|