Update app.py
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ if st.button("Sentiment Analysis", type="secondary"):
|
|
128 |
|
129 |
user_id = 1
|
130 |
for comment in comments:
|
131 |
-
timestamp = comment.find_element(By.CSS_SELECTOR, '
|
132 |
data.append({"User ID": user_id, "Comment": comment.text, "comment_date": timestamp})
|
133 |
user_id += 1
|
134 |
data = [dict(t) for t in {tuple(d.items()) for d in data}]
|
|
|
128 |
|
129 |
user_id = 1
|
130 |
for comment in comments:
|
131 |
+
timestamp = comment.find_element(By.CSS_SELECTOR, '.time').text
|
132 |
data.append({"User ID": user_id, "Comment": comment.text, "comment_date": timestamp})
|
133 |
user_id += 1
|
134 |
data = [dict(t) for t in {tuple(d.items()) for d in data}]
|