duwing commited on
Commit
b7783e7
·
verified ·
1 Parent(s): 9c72e61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -117,8 +117,8 @@ def get_comments(news_url):
117
  pid = i
118
  L = instaloader.Instaloader()
119
  post = Post.from_shortcode(L.context, pid)
120
-
121
- return '', post.caption, post.comments
122
 
123
  def processing_data(comments):
124
  comment_list = []
 
117
  pid = i
118
  L = instaloader.Instaloader()
119
  post = Post.from_shortcode(L.context, pid)
120
+ comments = [x.text for x in post.get_comments()]
121
+ return '', post.caption, comments
122
 
123
  def processing_data(comments):
124
  comment_list = []