naufalnashif commited on
Commit
a52b632
·
1 Parent(s): 5ef9c39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -245,11 +245,11 @@ def remove_stopwords(text, stop_words):
245
  #---------------------------------------------------User Interface----------------------------------------------------------------------
246
 
247
  # Streamlit UI
248
- st.title("Aplikasi Web Scraping CNBC / Detik.com & Explorasi Data")
249
 
250
- with st.expander("Settings :"):
251
  # Pilihan untuk memilih situs web
252
- selected_site = st.selectbox("Pilih Situs Web :", ["CNBC Indonesia", "Detik.com"])
253
 
254
  query = st.text_input("Masukkan Query :")
255
  jumlah = st.number_input("Masukkan Estimasi Banyak Data :", min_value = 1, step = 1, placeholder="Type a number...")
@@ -258,13 +258,14 @@ with st.expander("Settings :"):
258
  'Pilih tampilan:',
259
  ['Hasil Scraping', 'Hasil Preprocessing', 'Hasil EDA']
260
  )
261
- colormap = st.selectbox("Pilih Warna Wordclouds :", ["Greys", "Purples", "Blues", "Greens", "Oranges", "Reds", "YlOrBr", "YlOrRd", "OrRd", "PuRd", "RdPu", "BuPu", "GnBu", "PuBu", "YlGnBu", "PuBuGn", "BuGn", "YlGn"])
262
- words = st.number_input("Masukkan Jumlah Most Common Words :", min_value = 1, max_value = 15, step = 1, placeholder="Type a number...")
263
-
264
  date = date.today()
265
  download_format = st.selectbox("Pilih Format Unduhan :", ["XLSX", "CSV", "JSON", "TXT"])
266
- st.info('Tekan "Mulai Scraping" kembali jika tampilan menghilang ', icon="ℹ️")
267
 
 
 
 
 
 
268
  # Variabel tersembunyi untuk menyimpan hasil scraping
269
  hidden_data = []
270
 
 
245
  #---------------------------------------------------User Interface----------------------------------------------------------------------
246
 
247
  # Streamlit UI
248
+ st.title("Aplikasi Web Scraping & Explorasi Data")
249
 
250
+ with st.expander("Scraping Settings :"):
251
  # Pilihan untuk memilih situs web
252
+ selected_site = st.selectbox("Pilih Situs Web :", ["CNBC Indonesia", "Detik.com", "Viva.co.id", "Tempo.co", "Liputan6.com"])
253
 
254
  query = st.text_input("Masukkan Query :")
255
  jumlah = st.number_input("Masukkan Estimasi Banyak Data :", min_value = 1, step = 1, placeholder="Type a number...")
 
258
  'Pilih tampilan:',
259
  ['Hasil Scraping', 'Hasil Preprocessing', 'Hasil EDA']
260
  )
 
 
 
261
  date = date.today()
262
  download_format = st.selectbox("Pilih Format Unduhan :", ["XLSX", "CSV", "JSON", "TXT"])
 
263
 
264
+ with st.expander("Preference Settings :"):
265
+ colormap = st.selectbox("Pilih Warna Wordclouds :", ["Greys", "Purples", "Blues", "Greens", "Oranges", "Reds", "YlOrBr", "YlOrRd", "OrRd", "PuRd", "RdPu", "BuPu", "GnBu", "PuBu", "YlGnBu", "PuBuGn", "BuGn", "YlGn"])
266
+ words = st.number_input("Masukkan Jumlah Most Common Words :", min_value = 1, max_value = 15, step = 1, placeholder="Type a number...")
267
+ st.info('Tekan "Mulai Scraping" kembali jika tampilan menghilang ', icon="ℹ️")
268
+
269
  # Variabel tersembunyi untuk menyimpan hasil scraping
270
  hidden_data = []
271