Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
-
from extract import take_webdata
|
3 |
from PIL import Image
|
4 |
from io import BytesIO
|
5 |
|
@@ -7,10 +7,10 @@ def main():
|
|
7 |
st.title("Website Content Exctractor")
|
8 |
|
9 |
# Get website URL from user input
|
10 |
-
url = st.text_input("
|
11 |
if st.button("Proceed"):
|
12 |
if not url:
|
13 |
-
st.warning("
|
14 |
else:
|
15 |
visualize(url)
|
16 |
|
@@ -20,7 +20,8 @@ def visualize(url):
|
|
20 |
# Fetch and display the website content
|
21 |
with st.spinner("loading website data ..."):
|
22 |
# innerHTML = get_innerHTML(url)
|
23 |
-
html_image, html_content = take_webdata(url)
|
|
|
24 |
st.subheader("Website title:")
|
25 |
if html_content:
|
26 |
st.info(html_content)
|
|
|
1 |
import streamlit as st
|
2 |
+
from extract import take_webdata, get_vehicle_info
|
3 |
from PIL import Image
|
4 |
from io import BytesIO
|
5 |
|
|
|
7 |
st.title("Website Content Exctractor")
|
8 |
|
9 |
# Get website URL from user input
|
10 |
+
url = st.text_input("Masukkan Nopol:", "")
|
11 |
if st.button("Proceed"):
|
12 |
if not url:
|
13 |
+
st.warning("Nopol kosong.")
|
14 |
else:
|
15 |
visualize(url)
|
16 |
|
|
|
20 |
# Fetch and display the website content
|
21 |
with st.spinner("loading website data ..."):
|
22 |
# innerHTML = get_innerHTML(url)
|
23 |
+
# html_image, html_content = take_webdata(url)
|
24 |
+
html_image, html_content = get_vehicle_info(url)
|
25 |
st.subheader("Website title:")
|
26 |
if html_content:
|
27 |
st.info(html_content)
|