Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 103 |
-
if
|
| 104 |
-
|
| 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 |
|