nlpblogs commited on
Commit
0900d1d
·
verified ·
1 Parent(s): 5a885e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, 'div.author-info time')
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}]