Spaces:
Sleeping
Sleeping
File size: 751 Bytes
13e115d 86797a6 13e115d 86797a6 13e115d 86797a6 13e115d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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("---")
|