Spaces:
Sleeping
Sleeping
naufalnashif
commited on
Commit
·
7bb2d34
1
Parent(s):
c444e88
Update app.py
Browse files
app.py
CHANGED
@@ -235,7 +235,7 @@ def scrape_tempo_data(query, date, jumlah, selected_channel):
|
|
235 |
my_bar = st.progress(len(data), text=progress_text)
|
236 |
# List of channel values
|
237 |
default_channels = {
|
238 |
-
'
|
239 |
'Nasional': '20',
|
240 |
'Metro': '19',
|
241 |
'Dunia': '5',
|
@@ -482,7 +482,7 @@ with st.expander("Scraping Settings :"):
|
|
482 |
selected_site = st.selectbox("Pilih Situs Web :", ["CNBC Indonesia", "Detik.com", "Viva.co.id", "Tempo.co", "Liputan6.com"])
|
483 |
if selected_site == "Tempo.co":
|
484 |
waktu = st.selectbox("Pilih Rentang Waktu :", ["1tahun", "1bulan", "1minggu", "1hari", "6jam"])
|
485 |
-
selected_channel = st.selectbox("Pilih Kanal :", ['Defaults','All', 'Nasional', 'Metro', 'Dunia', 'Bisnis', 'Bola', 'Sport', 'Gaya', 'Seleb', 'Cantik', 'Tekno', 'Otomotif', 'Travel', 'Blog', 'Difabel', 'Ramadan', 'Kolom', 'Fokus', 'Creative Lab', 'Event', 'Data', 'Cek Fakta', 'Newsletter', 'Inforial'])
|
486 |
query = st.text_input("Masukkan Query :").replace(' ', '+')
|
487 |
|
488 |
jumlah = st.number_input("Masukkan Estimasi Banyak Data :", min_value = 1, step = 1, placeholder="Type a number...")
|
|
|
235 |
my_bar = st.progress(len(data), text=progress_text)
|
236 |
# List of channel values
|
237 |
default_channels = {
|
238 |
+
'All(Latest Only)': '',
|
239 |
'Nasional': '20',
|
240 |
'Metro': '19',
|
241 |
'Dunia': '5',
|
|
|
482 |
selected_site = st.selectbox("Pilih Situs Web :", ["CNBC Indonesia", "Detik.com", "Viva.co.id", "Tempo.co", "Liputan6.com"])
|
483 |
if selected_site == "Tempo.co":
|
484 |
waktu = st.selectbox("Pilih Rentang Waktu :", ["1tahun", "1bulan", "1minggu", "1hari", "6jam"])
|
485 |
+
selected_channel = st.selectbox("Pilih Kanal :", ['Defaults','All(Latest Only)', 'Nasional', 'Metro', 'Dunia', 'Bisnis', 'Bola', 'Sport', 'Gaya', 'Seleb', 'Cantik', 'Tekno', 'Otomotif', 'Travel', 'Blog', 'Difabel', 'Ramadan', 'Kolom', 'Fokus', 'Creative Lab', 'Event', 'Data', 'Cek Fakta', 'Newsletter', 'Inforial'])
|
486 |
query = st.text_input("Masukkan Query :").replace(' ', '+')
|
487 |
|
488 |
jumlah = st.number_input("Masukkan Estimasi Banyak Data :", min_value = 1, step = 1, placeholder="Type a number...")
|