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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -99,9 +99,9 @@ def get_comments(news_url):
99
  title = article_soup.select_one("#content > div.end_ct > div > h2")
100
 
101
  # 본문 추출
102
- content = article_soup.select_one("#dic_area")
103
- if content is None:
104
- content = article_soup.select_one("#articeBody")
105
 
106
  return title, article, processing_data(json_data['result']['commentList'])
107
 
 
99
  title = article_soup.select_one("#content > div.end_ct > div > h2")
100
 
101
  # 본문 추출
102
+ article = article_soup.select_one("#dic_area")
103
+ if article is None:
104
+ article = article_soup.select_one("#articeBody")
105
 
106
  return title, article, processing_data(json_data['result']['commentList'])
107