seawolf2357 commited on
Commit
76666bd
·
verified ·
1 Parent(s): 29d98c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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('a-list-item')
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: