Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -111,10 +111,10 @@ def get_comments(news_url):
|
|
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 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
L = instaloader.Instaloader()
|
119 |
post = Post.from_shortcode(L.context, pid)
|
120 |
|
|
|
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 |
+
pid = ''
|
115 |
+
for i in list:
|
116 |
+
if len(i) == 11:
|
117 |
+
pid = i
|
118 |
L = instaloader.Instaloader()
|
119 |
post = Post.from_shortcode(L.context, pid)
|
120 |
|