Update app.py
Browse files
app.py
CHANGED
@@ -94,12 +94,12 @@ if st.button("Sentiment Analysis", type="secondary"):
|
|
94 |
driver.get(url)
|
95 |
placeholder = st.empty()
|
96 |
progress_bar = st.progress(0)
|
97 |
-
for item in range(
|
98 |
try:
|
99 |
body = WebDriverWait(driver, 30).until(EC.visibility_of_element_located((By.TAG_NAME, "body")))
|
100 |
body.send_keys(Keys.END)
|
101 |
placeholder.text(f"Scrolled {item + 1} times")
|
102 |
-
progress_bar.progress((item + 1) /
|
103 |
time.sleep(0.50)
|
104 |
except Exception as e:
|
105 |
st.error(f"Exception during scrolling: {e}")
|
|
|
94 |
driver.get(url)
|
95 |
placeholder = st.empty()
|
96 |
progress_bar = st.progress(0)
|
97 |
+
for item in range(1000):
|
98 |
try:
|
99 |
body = WebDriverWait(driver, 30).until(EC.visibility_of_element_located((By.TAG_NAME, "body")))
|
100 |
body.send_keys(Keys.END)
|
101 |
placeholder.text(f"Scrolled {item + 1} times")
|
102 |
+
progress_bar.progress((item + 1) / 150)
|
103 |
time.sleep(0.50)
|
104 |
except Exception as e:
|
105 |
st.error(f"Exception during scrolling: {e}")
|