nlpblogs commited on
Commit
3f5b6ed
·
verified ·
1 Parent(s): 3a628d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -129,7 +129,7 @@ if st.button("Sentiment Analysis", type="secondary"):
129
  for comment in comments:
130
 
131
 
132
- timestamp=comments.find_elements_by_xpath('//*[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
 
 
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