Engineer786 commited on
Commit
f8968ac
·
verified ·
1 Parent(s): 4b29380

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import streamlit as st
2
  import pandas as pd
3
- from tariff_scraper import TARIFF_URLS, scrape_tariff_data_to_csv
4
 
5
  def main():
6
  st.title("PESCO Tariff Rates Viewer")
@@ -12,7 +12,7 @@ def main():
12
  st.write(f"Fetching data from {url}...")
13
 
14
  with st.spinner("Scraping data..."):
15
- output_file = scrape_tariff_data_to_csv(url)
16
  if output_file.endswith(".csv"):
17
  st.success(f"Data successfully saved to {output_file}!")
18
  st.write("### Preview of Tariff Rates:")
 
1
  import streamlit as st
2
  import pandas as pd
3
+ from tariff_scraper import TARIFF_URLS, scrape_multiple_sections_to_csv
4
 
5
  def main():
6
  st.title("PESCO Tariff Rates Viewer")
 
12
  st.write(f"Fetching data from {url}...")
13
 
14
  with st.spinner("Scraping data..."):
15
+ output_file = scrape_multiple_sections_to_csv(url)
16
  if output_file.endswith(".csv"):
17
  st.success(f"Data successfully saved to {output_file}!")
18
  st.write("### Preview of Tariff Rates:")