This commit is contained in:
Oleh Omelchenko
2024-06-20 12:56:54 +03:00
parent 75107ee23f
commit bff655337a
3 changed files with 4471 additions and 1 deletions

21
pages/first_page.py Normal file
View File

@@ -0,0 +1,21 @@
import streamlit as st
import pandas as pd
import ssl
ssl._create_default_https_context = ssl._create_stdlib_context
st.write("Hello First Page")
@st.cache_data
def get_html_data(url):
return pd.read_html(url)
URL = st.text_input("URL with tables", value='https://en.wikipedia.org/wiki/List_of_Nobel_laureates_by_country')
tables = get_html_data(URL)
for table in tables:
with st.expander("table"):
st.table(table)