nlpblogs commited on
Commit
065d889
·
verified ·
1 Parent(s): 99a27b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -125,8 +125,8 @@ if st.button("Sentiment Analysis", type="secondary"):
125
  try:
126
  wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, "#contents #contents")))
127
  comments = driver.find_elements(By.CSS_SELECTOR, "#content #content-text")
128
- timestamp1 = driver.find_element(By.CSS_SELECTOR,'div.author-info time')
129
- timestamp = timestamp1.get_attribute('datetime')
130
  user_id = 1
131
  for comment in comments:
132
 
 
125
  try:
126
  wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, "#contents #contents")))
127
  comments = driver.find_elements(By.CSS_SELECTOR, "#content #content-text")
128
+ comments = driver.find_element(By.CSS_SELECTOR,'div.author-info time')
129
+ comments = comments.get_attribute('datetime')
130
  user_id = 1
131
  for comment in comments:
132