Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
-
from tariff_scraper import TARIFF_URLS,
|
| 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 =
|
| 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:")
|