Spaces:
Sleeping
Sleeping
import streamlit as st | |
import pandas as pd | |
# ์์ ๋ฐ์ดํฐํ๋ ์ (์ค์ ๋ฐ์ดํฐ๋ก ๊ต์ฒด) | |
df = pd.DataFrame({ | |
'Rank': [1, 2, 3], | |
'Title': ['๋ด์ค ์ ๋ชฉ 1', '๋ด์ค ์ ๋ชฉ 2', '๋ด์ค ์ ๋ชฉ 3'], | |
'Link': ['https://news1.com', 'https://news2.com', 'https://news3.com'], | |
'Time': ['1์๊ฐ ์ ', '2์๊ฐ ์ ', '3์๊ฐ ์ '], | |
'Image URL': ['https://example.com/image1.jpg', 'https://example.com/image2.jpg', 'https://example.com/image3.jpg'] | |
}) | |
st.title('Naver Ranking News') | |
# ๊ฐ๋ณ ๋ด์ค ํญ๋ชฉ์ ์ถ๋ ฅ | |
for index, row in df.iterrows(): | |
st.image(row['Image URL'], width=100) | |
st.markdown(f"**[{row['Title']}]({row['Link']})**") | |
st.write(f"Rank: {row['Rank']} | Time: {row['Time']}") | |
st.write("---") | |