Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,9 +21,9 @@ def visualize(url):
|
|
| 21 |
# Fetch and display the website content
|
| 22 |
with st.spinner("loading website data ..."):
|
| 23 |
# innerHTML = get_innerHTML(url)
|
| 24 |
-
html_content,
|
| 25 |
#st.subheader("Website title:")
|
| 26 |
-
if
|
| 27 |
#st.info(html_content)
|
| 28 |
#st.code(html_content, language='html')
|
| 29 |
# Konversi tabel HTML ke DataFrame Pandas
|
|
@@ -33,7 +33,7 @@ def visualize(url):
|
|
| 33 |
|
| 34 |
|
| 35 |
# === 6. Tampilkan di Streamlit ===
|
| 36 |
-
st.dataframe(
|
| 37 |
else:
|
| 38 |
st.warning("Tabel tidak ditemukan.")
|
| 39 |
|
|
|
|
| 21 |
# Fetch and display the website content
|
| 22 |
with st.spinner("loading website data ..."):
|
| 23 |
# innerHTML = get_innerHTML(url)
|
| 24 |
+
html_content, xdataframe = take_webdata(url)
|
| 25 |
#st.subheader("Website title:")
|
| 26 |
+
if xdataframe:
|
| 27 |
#st.info(html_content)
|
| 28 |
#st.code(html_content, language='html')
|
| 29 |
# Konversi tabel HTML ke DataFrame Pandas
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
# === 6. Tampilkan di Streamlit ===
|
| 36 |
+
st.dataframe(xdataframe)
|
| 37 |
else:
|
| 38 |
st.warning("Tabel tidak ditemukan.")
|
| 39 |
|