Update app.py
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ if st.button("Sentiment Analysis", type="secondary"):
|
|
129 |
for comment in comments:
|
130 |
|
131 |
|
132 |
-
timestamp=comments.
|
133 |
|
134 |
data.append({"User ID": user_id, "Comment": comment.text, "comment_date": timestamp})
|
135 |
|
|
|
129 |
for comment in comments:
|
130 |
|
131 |
|
132 |
+
timestamp=comments.find_elements(By.CSS_SELECTOR,"//*[contains(@class,"yt-simple-endpoint style-scope yt-formatted-string")]')
|
133 |
|
134 |
data.append({"User ID": user_id, "Comment": comment.text, "comment_date": timestamp})
|
135 |
|