duwing commited on
Commit
6465ce2
·
verified ·
1 Parent(s): e29024a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ def get_comments(news_url):
91
  json_data = json.loads(content)
92
 
93
  response = requests.get(news_url)
94
- soup = BeautifulSoup(response.text, "html.parser")
95
 
96
  # 제목 추출
97
  title = article_soup.select_one("#ct > div.media_end_head.go_trans > div.media_end_head_title > h2")
 
91
  json_data = json.loads(content)
92
 
93
  response = requests.get(news_url)
94
+ article_soup = BeautifulSoup(response.text, "html.parser")
95
 
96
  # 제목 추출
97
  title = article_soup.select_one("#ct > div.media_end_head.go_trans > div.media_end_head_title > h2")