lalithadevi commited on
Commit
4d0f06f
1 Parent(s): 18c9a32

Update news_extractor/news_extractor.py

Browse files
Files changed (1) hide show
  1. news_extractor/news_extractor.py +2 -3
news_extractor/news_extractor.py CHANGED
@@ -47,8 +47,7 @@ def rss_parser(i):
47
  date = "Sat, 12 Aug 2000 13:39:15 +05:30" if ((b1.find("pubDate") == "") or (b1.find("pubDate") is None)) else b1.find("pubDate").get_text()
48
  if url.find("businesstoday.in") >= 0:
49
  date = date.replace("GMT", "+05:30")
50
- if url.find("deccanchronicle") >= 0:
51
- date = date.replace("GMT", "+05:30")
52
  date1 = parser.parse(date)
53
  return pd.DataFrame({"title": title,
54
  "url": url,
@@ -111,7 +110,7 @@ def news_agg(rss):
111
  # List of RSS feeds
112
  rss = ['https://www.economictimes.indiatimes.com/rssfeedstopstories.cms',
113
  'https://www.thehindu.com/news/feeder/default.rss',
114
- 'https://www.deccanchronicle.com/google_feeds.xml',
115
  'https://www.businesstoday.in/rssfeeds/?id=225346',
116
  'https://feeds.feedburner.com/ndtvnews-latest',
117
  'https://www.hindustantimes.com/feeds/rss/world-news/rssfeed.xml',
 
47
  date = "Sat, 12 Aug 2000 13:39:15 +05:30" if ((b1.find("pubDate") == "") or (b1.find("pubDate") is None)) else b1.find("pubDate").get_text()
48
  if url.find("businesstoday.in") >= 0:
49
  date = date.replace("GMT", "+05:30")
50
+
 
51
  date1 = parser.parse(date)
52
  return pd.DataFrame({"title": title,
53
  "url": url,
 
110
  # List of RSS feeds
111
  rss = ['https://www.economictimes.indiatimes.com/rssfeedstopstories.cms',
112
  'https://www.thehindu.com/news/feeder/default.rss',
113
+ 'https://telanganatoday.com/feed',
114
  'https://www.businesstoday.in/rssfeeds/?id=225346',
115
  'https://feeds.feedburner.com/ndtvnews-latest',
116
  'https://www.hindustantimes.com/feeds/rss/world-news/rssfeed.xml',