Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,7 +109,7 @@ def get_comments(news_url):
|
|
| 109 |
article = article_soup.select_one("#articeBody")
|
| 110 |
|
| 111 |
return title.text.strip(), article.text.strip(), processing_data(json_data['result']['commentList'])
|
| 112 |
-
|
| 113 |
list = news_url.split('/')
|
| 114 |
if list[-1]:
|
| 115 |
pid = list[-1]
|
|
|
|
| 109 |
article = article_soup.select_one("#articeBody")
|
| 110 |
|
| 111 |
return title.text.strip(), article.text.strip(), processing_data(json_data['result']['commentList'])
|
| 112 |
+
elif ('insta' in news_url):
|
| 113 |
list = news_url.split('/')
|
| 114 |
if list[-1]:
|
| 115 |
pid = list[-1]
|