Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,15 +41,48 @@ def display_feed(feed_url):
|
|
| 41 |
# Main function to handle Streamlit app
|
| 42 |
def main():
|
| 43 |
st.sidebar.title("Navigation")
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
feed_url = feed_urls.get(selection)
|
| 55 |
|
|
|
|
| 41 |
# Main function to handle Streamlit app
|
| 42 |
def main():
|
| 43 |
st.sidebar.title("Navigation")
|
| 44 |
+
selection = st.sidebar.radio("Choose a section", [
|
| 45 |
+
"Latest Stories",
|
| 46 |
+
"Top Stories",
|
| 47 |
+
"World",
|
| 48 |
+
"Movies",
|
| 49 |
+
"Tech",
|
| 50 |
+
"Trending News",
|
| 51 |
+
"India News",
|
| 52 |
+
"Sports",
|
| 53 |
+
"Cricket",
|
| 54 |
+
"Car & Bike",
|
| 55 |
+
"Cities News",
|
| 56 |
+
"South",
|
| 57 |
+
"Indians Abroad",
|
| 58 |
+
"Cooks",
|
| 59 |
+
"Offbeat News",
|
| 60 |
+
"People",
|
| 61 |
+
"NDTV Khabar",
|
| 62 |
+
"Latest Videos"
|
| 63 |
+
])
|
| 64 |
+
|
| 65 |
+
# Define RSS feed URLs for different sections
|
| 66 |
+
feed_urls = {
|
| 67 |
+
"Latest Stories": "https://feeds.feedburner.com/ndtvnews-latest",
|
| 68 |
+
"Top Stories": "https://feeds.feedburner.com/ndtvnews-top-stories",
|
| 69 |
+
"World": "https://feeds.feedburner.com/ndtvnews-world-news",
|
| 70 |
+
"Movies": "https://feeds.feedburner.com/ndtvmovies-latest",
|
| 71 |
+
"Tech": "https://feeds.feedburner.com/gadgets360-latest",
|
| 72 |
+
"Trending News": "https://feeds.feedburner.com/ndtvnews-trending-news",
|
| 73 |
+
"India News": "https://feeds.feedburner.com/ndtvnews-india-news",
|
| 74 |
+
"Sports": "https://feeds.feedburner.com/ndtvsports-latest",
|
| 75 |
+
"Cricket": "https://feeds.feedburner.com/ndtvsports-cricket",
|
| 76 |
+
"Car & Bike": "https://feeds.feedburner.com/carandbike-latest",
|
| 77 |
+
"Cities News": "https://feeds.feedburner.com/ndtvnews-cities-news",
|
| 78 |
+
"South": "https://feeds.feedburner.com/ndtvnews-south",
|
| 79 |
+
"Indians Abroad": "https://feeds.feedburner.com/ndtvnews-indians-abroad",
|
| 80 |
+
"Cooks": "https://feeds.feedburner.com/ndtvcooks-latest",
|
| 81 |
+
"Offbeat News": "https://feeds.feedburner.com/ndtvnews-offbeat-news",
|
| 82 |
+
"People": "https://feeds.feedburner.com/ndtvnews-people",
|
| 83 |
+
"NDTV Khabar": "https://feeds.feedburner.com/ndtvkhabar-latest",
|
| 84 |
+
"Latest Videos": "https://feeds.feedburner.com/ndtv/latest-videos"
|
| 85 |
+
}
|
| 86 |
|
| 87 |
feed_url = feed_urls.get(selection)
|
| 88 |
|