Files
kse-streamlit-2024-06/pages/first_page.py
Oleh Omelchenko bff655337a wip
2024-06-20 12:56:54 +03:00

22 lines
439 B
Python

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)