dindizz commited on
Commit
03c2b26
·
verified ·
1 Parent(s): 4239df3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -13
app.py CHANGED
@@ -4,25 +4,24 @@ import gradio as gr
4
 
5
  # Define the RSS feed URLs
6
  news_sources = {
7
- "Times of India": "https://timesofindia.indiatimes.com/rssfeedmostrecent.cms",
8
- "The Hindu": "https://www.thehindu.com/feeder/default.rss",
9
- "Live Mint": "https://www.livemint.com/rss/news",
10
  "India Today": "https://www.indiatoday.in/rss/home",
11
  "Indian Express": "https://indianexpress.com/section/india/feed",
 
12
  "Money Control": "https://www.moneycontrol.com/rss/latestnews.xml",
13
- "Hindustan Times": "https://www.hindustantimes.com/feeds/rss/latest/rssfeed.xml",
14
- "Business Line": "https://www.thehindubusinessline.com/feeder/default.rss",
15
- "The Federal": "https://thefederal.com/feeds.xml",
16
- "The Federal Telangana": "https://telangana.thefederal.com/feeds.xml",
17
- "The Federal Andhra ": "https://andhrapradesh.thefederal.com/feeds.xml",
18
- "The Federal Karnataka": "https://karnataka.thefederal.com/feeds.xml",
19
- "The Federal Desh ": "https://desh.thefederal.com/feeds.xml",
20
  "NDTV": "https://feeds.feedburner.com/NDTV-LatestNews",
21
  "News 18": "https://www.news18.com/commonfeeds/v1/eng/rss/india.xml",
22
- "Deccan Chronicle ": "https://www.deccanchronicle.com/google_feeds.xml",
23
- "Telangana Today": "https://telanganatoday.com/feed"
 
 
 
 
 
 
24
  }
25
-
26
  # Function to fetch and parse RSS feeds
27
  def fetch_news(source):
28
  try:
 
4
 
5
  # Define the RSS feed URLs
6
  news_sources = {
7
+ "Business Line": "https://www.thehindubusinessline.com/feeder/default.rss",
8
+ "Deccan Chronicle": "https://www.deccanchronicle.com/google_feeds.xml",
9
+ "Hindustan Times": "https://www.hindustantimes.com/feeds/rss/latest/rssfeed.xml",
10
  "India Today": "https://www.indiatoday.in/rss/home",
11
  "Indian Express": "https://indianexpress.com/section/india/feed",
12
+ "Live Mint": "https://www.livemint.com/rss/news",
13
  "Money Control": "https://www.moneycontrol.com/rss/latestnews.xml",
 
 
 
 
 
 
 
14
  "NDTV": "https://feeds.feedburner.com/NDTV-LatestNews",
15
  "News 18": "https://www.news18.com/commonfeeds/v1/eng/rss/india.xml",
16
+ "Telangana Today": "https://telanganatoday.com/feed",
17
+ "The Federal": "https://thefederal.com/feeds.xml",
18
+ "The Federal Andhra": "https://andhrapradesh.thefederal.com/feeds.xml",
19
+ "The Federal Desh": "https://desh.thefederal.com/feeds.xml",
20
+ "The Federal Karnataka": "https://karnataka.thefederal.com/feeds.xml",
21
+ "The Federal Telangana": "https://telangana.thefederal.com/feeds.xml",
22
+ "The Hindu": "https://www.thehindu.com/feeder/default.rss",
23
+ "Times of India": "https://timesofindia.indiatimes.com/rssfeedmostrecent.cms"
24
  }
 
25
  # Function to fetch and parse RSS feeds
26
  def fetch_news(source):
27
  try: