Update app.py
Browse files
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 |
-
|
129 |
-
|
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 |
|