Spaces:
Running
Running
Upload 16 files
Browse files- data/news_sentiment.json +0 -0
- data/sentiment_trends.json +60 -0
- index.js +73 -73
data/news_sentiment.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/sentiment_trends.json
CHANGED
|
@@ -58,5 +58,65 @@
|
|
| 58 |
{
|
| 59 |
"time": "2026-04-11T20:15:01.370Z",
|
| 60 |
"score": 0.7939778129952456
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
}
|
| 62 |
]
|
|
|
|
| 58 |
{
|
| 59 |
"time": "2026-04-11T20:15:01.370Z",
|
| 60 |
"score": 0.7939778129952456
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"time": "2026-04-11T20:20:01.662Z",
|
| 64 |
+
"score": 0.8032961190855927
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"time": "2026-04-11T20:25:02.134Z",
|
| 68 |
+
"score": 0.7757255936675461
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"time": "2026-04-11T20:30:02.479Z",
|
| 72 |
+
"score": 0.7897245762711864
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"time": "2026-04-11T20:35:01.597Z",
|
| 76 |
+
"score": 0.8086452293094359
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"time": "2026-04-11T20:40:01.094Z",
|
| 80 |
+
"score": 0.8339542309739223
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"time": "2026-04-11T20:45:01.094Z",
|
| 84 |
+
"score": 0.8426368952684742
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"time": "2026-04-11T20:50:01.370Z",
|
| 88 |
+
"score": 0.8333333333333334
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"time": "2026-04-11T20:55:01.129Z",
|
| 92 |
+
"score": 0.832624867162593
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"time": "2026-04-11T21:00:01.186Z",
|
| 96 |
+
"score": 0.8461538461538461
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"time": "2026-04-11T21:05:01.119Z",
|
| 100 |
+
"score": 0.8702731092436975
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"time": "2026-04-11T21:10:01.154Z",
|
| 104 |
+
"score": 0.8967877830437072
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"time": "2026-04-12T17:25:20.120Z",
|
| 108 |
+
"score": 0.8204730515703761
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"time": "2026-04-12T17:26:40.840Z",
|
| 112 |
+
"score": 0.8149010477299186
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"time": "2026-04-12T17:30:02.130Z",
|
| 116 |
+
"score": 0.8081664098613252
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"time": "2026-04-12T17:35:03.018Z",
|
| 120 |
+
"score": 0.8461240310077519
|
| 121 |
}
|
| 122 |
]
|
index.js
CHANGED
|
@@ -21,81 +21,81 @@ const DATA_FILE = path.join(__dirname, 'data', 'news_sentiment.json');
|
|
| 21 |
const TREND_FILE = path.join(__dirname, 'data', 'sentiment_trends.json');
|
| 22 |
|
| 23 |
const RSS_FEEDS = [
|
| 24 |
-
'https://news.google.com/rss/search?q=when:
|
| 25 |
'https://news.google.com/rss/headlines/section/topic/BUSINESS?hl=en-IN&gl=IN&ceid=IN:en',
|
| 26 |
-
'https://news.google.com/rss/search?q=when:
|
| 27 |
-
'https://news.google.com/rss/search?q=when:
|
| 28 |
-
'https://news.google.com/rss/search?q=when:
|
| 29 |
-
'https://news.google.com/rss/search?q=when:
|
| 30 |
'https://economictimes.indiatimes.com/markets/stocks/rssfeeds/2146842.cms',
|
| 31 |
'https://www.livemint.com/rss/markets',
|
| 32 |
-
'https://news.google.com/rss/search?q=when:
|
| 33 |
-
'https://news.google.com/rss/search?q=when:
|
| 34 |
-
'https://news.google.com/rss/search?q=when:
|
| 35 |
-
'https://news.google.com/rss/search?q=when:
|
| 36 |
-
'https://news.google.com/rss/search?q=when:
|
| 37 |
-
'https://news.google.com/rss/search?q=when:
|
| 38 |
-
'https://news.google.com/rss/search?q=when:
|
| 39 |
-
'https://news.google.com/rss/search?q=when:
|
| 40 |
-
'https://news.google.com/rss/search?q=when:
|
| 41 |
-
'https://news.google.com/rss/search?q=when:
|
| 42 |
-
'https://news.google.com/rss/search?q=when:
|
| 43 |
-
'https://news.google.com/rss/search?q=when:
|
| 44 |
-
'https://news.google.com/rss/search?q=when:
|
| 45 |
-
'https://news.google.com/rss/search?q=when:
|
| 46 |
-
'https://news.google.com/rss/search?q=when:
|
| 47 |
-
'https://news.google.com/rss/search?q=when:
|
| 48 |
-
'https://news.google.com/rss/search?q=when:
|
| 49 |
-
'https://news.google.com/rss/search?q=when:
|
| 50 |
-
'https://news.google.com/rss/search?q=when:
|
| 51 |
-
'https://news.google.com/rss/search?q=when:
|
| 52 |
-
'https://news.google.com/rss/search?q=when:
|
| 53 |
-
'https://news.google.com/rss/search?q=when:
|
| 54 |
-
'https://news.google.com/rss/search?q=when:
|
| 55 |
-
'https://news.google.com/rss/search?q=when:
|
| 56 |
-
'https://news.google.com/rss/search?q=when:
|
| 57 |
-
'https://news.google.com/rss/search?q=when:
|
| 58 |
-
'https://news.google.com/rss/search?q=when:
|
| 59 |
-
'https://news.google.com/rss/search?q=when:
|
| 60 |
-
'https://news.google.com/rss/search?q=when:
|
| 61 |
-
'https://news.google.com/rss/search?q=when:
|
| 62 |
-
'https://news.google.com/rss/search?q=when:
|
| 63 |
-
'https://news.google.com/rss/search?q=when:
|
| 64 |
-
'https://news.google.com/rss/search?q=when:
|
| 65 |
-
'https://news.google.com/rss/search?q=when:
|
| 66 |
-
'https://news.google.com/rss/search?q=when:
|
| 67 |
-
'https://news.google.com/rss/search?q=when:
|
| 68 |
-
'https://news.google.com/rss/search?q=when:
|
| 69 |
-
'https://news.google.com/rss/search?q=when:
|
| 70 |
-
'https://news.google.com/rss/search?q=when:
|
| 71 |
-
'https://news.google.com/rss/search?q=when:
|
| 72 |
-
'https://news.google.com/rss/search?q=when:
|
| 73 |
-
'https://news.google.com/rss/search?q=when:
|
| 74 |
-
'https://news.google.com/rss/search?q=when:
|
| 75 |
-
'https://news.google.com/rss/search?q=when:
|
| 76 |
-
'https://news.google.com/rss/search?q=when:
|
| 77 |
-
'https://news.google.com/rss/search?q=when:
|
| 78 |
-
'https://news.google.com/rss/search?q=when:
|
| 79 |
-
'https://news.google.com/rss/search?q=when:
|
| 80 |
-
'https://news.google.com/rss/search?q=when:
|
| 81 |
-
'https://news.google.com/rss/search?q=when:
|
| 82 |
-
'https://news.google.com/rss/search?q=when:
|
| 83 |
-
'https://news.google.com/rss/search?q=when:
|
| 84 |
'https://www.businesstoday.in/rss/markets',
|
| 85 |
-
'https://news.google.com/rss/search?q=when:
|
| 86 |
-
'https://news.google.com/rss/search?q=when:
|
| 87 |
-
'https://news.google.com/rss/search?q=when:
|
| 88 |
-
'https://news.google.com/rss/search?q=when:
|
| 89 |
-
'https://news.google.com/rss/search?q=when:
|
| 90 |
-
'https://news.google.com/rss/search?q=when:
|
| 91 |
-
'https://news.google.com/rss/search?q=when:
|
| 92 |
-
'https://news.google.com/rss/search?q=when:
|
| 93 |
-
'https://news.google.com/rss/search?q=when:
|
| 94 |
-
'https://news.google.com/rss/search?q=when:
|
| 95 |
-
'https://news.google.com/rss/search?q=when:
|
| 96 |
-
'https://news.google.com/rss/search?q=when:
|
| 97 |
-
'https://news.google.com/rss/search?q=when:
|
| 98 |
-
'https://news.google.com/rss/search?q=when:
|
| 99 |
];
|
| 100 |
|
| 101 |
|
|
@@ -235,7 +235,7 @@ async function fetchAndAnalyzeNews() {
|
|
| 235 |
isFetching = true;
|
| 236 |
const allEntries = [];
|
| 237 |
const now = new Date();
|
| 238 |
-
const
|
| 239 |
|
| 240 |
const fetchPromises = RSS_FEEDS.map(async (url) => {
|
| 241 |
try {
|
|
@@ -247,7 +247,7 @@ async function fetchAndAnalyzeNews() {
|
|
| 247 |
const items = [];
|
| 248 |
feed.items.forEach(item => {
|
| 249 |
const pubDate = new Date(item.pubDate);
|
| 250 |
-
if (pubDate >=
|
| 251 |
const fullText = `${item.title} ${item.contentSnippet || ''}`;
|
| 252 |
const analysis = sentiment.analyze(fullText);
|
| 253 |
items.push({
|
|
|
|
| 21 |
const TREND_FILE = path.join(__dirname, 'data', 'sentiment_trends.json');
|
| 22 |
|
| 23 |
const RSS_FEEDS = [
|
| 24 |
+
'https://news.google.com/rss/search?q=when:48h+stock+market+india+NSE+BSE+finance&hl=en-IN&gl=IN&ceid=IN:en',
|
| 25 |
'https://news.google.com/rss/headlines/section/topic/BUSINESS?hl=en-IN&gl=IN&ceid=IN:en',
|
| 26 |
+
'https://news.google.com/rss/search?q=when:48h+stock+market+india+business&hl=en-IN&gl=IN&ceid=IN:en',
|
| 27 |
+
'https://news.google.com/rss/search?q=when:48h+site:moneycontrol.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 28 |
+
'https://news.google.com/rss/search?q=when:48h+site:financialexpress.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 29 |
+
'https://news.google.com/rss/search?q=when:48h+site:business-standard.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 30 |
'https://economictimes.indiatimes.com/markets/stocks/rssfeeds/2146842.cms',
|
| 31 |
'https://www.livemint.com/rss/markets',
|
| 32 |
+
'https://news.google.com/rss/search?q=when:48h+site:thehindubusinessline.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 33 |
+
'https://news.google.com/rss/search?q=when:48h+site:pulse.zerodha.com&hl=en-IN&gl=IN&ceid=IN:en',
|
| 34 |
+
'https://news.google.com/rss/search?q=when:48h+site:in.investing.com+intitle:(stocks+OR+markets+OR+india)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 35 |
+
'https://news.google.com/rss/search?q=when:48h+site:web.stockedge.com&hl=en-IN&gl=IN&ceid=IN:en',
|
| 36 |
+
'https://news.google.com/rss/search?q=when:48h+site:groww.in&hl=en-IN&gl=IN&ceid=IN:en',
|
| 37 |
+
'https://news.google.com/rss/search?q=when:48h+site:ndtvprofit.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 38 |
+
'https://news.google.com/rss/search?q=when:48h+site:cnbctv18.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 39 |
+
'https://news.google.com/rss/search?q=when:48h+site:zeebiz.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 40 |
+
'https://news.google.com/rss/search?q=when:48h+site:goodreturns.in+intitle:(stocks+OR+markets+OR+shares)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 41 |
+
'https://news.google.com/rss/search?q=when:48h+site:ticker.finology.in&hl=en-IN&gl=IN&ceid=IN:en',
|
| 42 |
+
'https://news.google.com/rss/search?q=when:48h+site:moneyworks4me.com&hl=en-IN&gl=IN&ceid=IN:en',
|
| 43 |
+
'https://news.google.com/rss/search?q=when:48h+site:trendlyne.com&hl=en-IN&gl=IN&ceid=IN:en',
|
| 44 |
+
'https://news.google.com/rss/search?q=when:48h+site:tickertape.in&hl=en-IN&gl=IN&ceid=IN:en',
|
| 45 |
+
'https://news.google.com/rss/search?q=when:48h+site:equitymaster.com+intitle:(stocks+OR+markets+OR+shares)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 46 |
+
'https://news.google.com/rss/search?q=when:48h+site:marketsmojo.com&hl=en-IN&gl=IN&ceid=IN:en',
|
| 47 |
+
'https://news.google.com/rss/search?q=when:48h+site:fortuneindia.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 48 |
+
'https://news.google.com/rss/search?q=when:48h+site:businessworld.in+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 49 |
+
'https://news.google.com/rss/search?q=when:48h+site:outlookbusiness.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 50 |
+
'https://news.google.com/rss/search?q=when:48h+site:money.rediff.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 51 |
+
'https://news.google.com/rss/search?q=when:48h+site:informistmedia.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 52 |
+
'https://news.google.com/rss/search?q=when:48h+site:reuters.com+intitle:(india+AND+(stocks+OR+markets+OR+nse+OR+bse))&hl=en-IN&gl=IN&ceid=IN:en',
|
| 53 |
+
'https://news.google.com/rss/search?q=when:48h+site:thehindu.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 54 |
+
'https://news.google.com/rss/search?q=when:48h+site:timesofindia.indiatimes.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 55 |
+
'https://news.google.com/rss/search?q=when:48h+site:deccanherald.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 56 |
+
'https://news.google.com/rss/search?q=when:48h+site:bqprime.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 57 |
+
'https://news.google.com/rss/search?q=when:48h+site:forbesindia.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 58 |
+
'https://news.google.com/rss/search?q=when:48h+site:bloomberg.com+intitle:(india+AND+(stocks+OR+markets+OR+nse+OR+bse))&hl=en-IN&gl=IN&ceid=IN:en',
|
| 59 |
+
'https://news.google.com/rss/search?q=when:48h+site:dsij.in+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 60 |
+
'https://news.google.com/rss/search?q=when:48h+site:economictimes.indiatimes.com/et-now+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 61 |
+
'https://news.google.com/rss/search?q=when:48h+site:firstpost.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 62 |
+
'https://news.google.com/rss/search?q=when:48h+site:capitalmarket.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 63 |
+
'https://news.google.com/rss/search?q=when:48h+site:news18.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 64 |
+
'https://news.google.com/rss/search?q=when:48h+site:news.abplive.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 65 |
+
'https://news.google.com/rss/search?q=when:48h+site:mydigitalfc.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 66 |
+
'https://news.google.com/rss/search?q=when:48h+site:asia.nikkei.com+intitle:(india+AND+(stocks+OR+markets+OR+nse+OR+bse))&hl=en-IN&gl=IN&ceid=IN:en',
|
| 67 |
+
'https://news.google.com/rss/search?q=when:48h+site:icicidirect.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 68 |
+
'https://news.google.com/rss/search?q=when:48h+site:hdfcsec.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 69 |
+
'https://news.google.com/rss/search?q=when:48h+site:smallcase.com+intitle:(stocks+OR+markets+OR+investing)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 70 |
+
'https://news.google.com/rss/search?q=when:48h+site:upstox.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 71 |
+
'https://news.google.com/rss/search?q=when:48h+site:angelone.in+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 72 |
+
'https://news.google.com/rss/search?q=when:48h+site:motilaloswal.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 73 |
+
'https://news.google.com/rss/search?q=when:48h+site:finshots.in+intitle:(stocks+OR+markets+OR+shares)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 74 |
+
'https://news.google.com/rss/search?q=when:48h+site:tradebrains.in+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 75 |
+
'https://news.google.com/rss/search?q=when:48h+site:valueresearchonline.com+intitle:(stocks+OR+markets+OR+shares)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 76 |
+
'https://news.google.com/rss/search?q=when:48h+site:entrackr.com+intitle:(stocks+OR+markets+OR+ipo+OR+listed)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 77 |
+
'https://news.google.com/rss/search?q=when:48h+site:inc42.com+intitle:(stocks+OR+markets+OR+ipo+OR+listed)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 78 |
+
'https://news.google.com/rss/search?q=when:48h+site:ft.com+intitle:(india+AND+(stocks+OR+markets+OR+nse+OR+bse))&hl=en-IN&gl=IN&ceid=IN:en',
|
| 79 |
+
'https://news.google.com/rss/search?q=when:48h+site:economist.com+intitle:(india+AND+(business+OR+markets+OR+economy))&hl=en-IN&gl=IN&ceid=IN:en',
|
| 80 |
+
'https://news.google.com/rss/search?q=when:48h+site:wsj.com+intitle:(india+AND+(stocks+OR+markets+OR+corporate))&hl=en-IN&gl=IN&ceid=IN:en',
|
| 81 |
+
'https://news.google.com/rss/search?q=when:48h+site:thestatesman.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 82 |
+
'https://news.google.com/rss/search?q=when:48h+site:dailypioneer.com+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 83 |
+
'https://news.google.com/rss/search?q=when:48h+site:freepressjournal.in+intitle:(stocks+OR+markets+OR+nse+OR+bse)&hl=en-IN&gl=IN&ceid=IN:en',
|
| 84 |
'https://www.businesstoday.in/rss/markets',
|
| 85 |
+
'https://news.google.com/rss/search?q=when:48h+site:screener.in&hl=en-IN&gl=IN&ceid=IN:en',
|
| 86 |
+
'https://news.google.com/rss/search?q=when:48h+site:capitalmind.in&hl=en-IN&gl=IN&ceid=IN:en',
|
| 87 |
+
'https://news.google.com/rss/search?q=when:48h+site:thecore.in&hl=en-IN&gl=IN&ceid=IN:en',
|
| 88 |
+
'https://news.google.com/rss/search?q=when:48h+site:bseindia.com+corporate+announcements&hl=en-IN&gl=IN&ceid=IN:en',
|
| 89 |
+
'https://news.google.com/rss/search?q=when:48h+site:nseindia.com+corporate+announcements&hl=en-IN&gl=IN&ceid=IN:en',
|
| 90 |
+
'https://news.google.com/rss/search?q=when:48h+site:alphastreet.com+india&hl=en-IN&gl=IN&ceid=IN:en',
|
| 91 |
+
'https://news.google.com/rss/search?q=when:48h+intitle:(dividend+OR+buyback+OR+"bonus+issue"+OR+"stock+split")+NSE+BSE&hl=en-IN&gl=IN&ceid=IN:en',
|
| 92 |
+
'https://news.google.com/rss/search?q=when:48h+intitle:("quarterly+results"+OR+"earnings"+OR+"PAT+growth")+NSE+BSE&hl=en-IN&gl=IN&ceid=IN:en',
|
| 93 |
+
'https://news.google.com/rss/search?q=when:48h+intitle:("FII+buying"+OR+"DII+selling"+OR+"bulk+deal"+OR+"block+deal")+NSE+BSE&hl=en-IN&gl=IN&ceid=IN:en',
|
| 94 |
+
'https://news.google.com/rss/search?q=when:48h+intitle:("SEBI"+OR+"RBI+monetary+policy"+OR+"repo+rate")+India&hl=en-IN&gl=IN&ceid=IN:en',
|
| 95 |
+
'https://news.google.com/rss/search?q=when:48h+intitle:("52-week+high"+OR+"breakout"+OR+"upper+circuit")+NSE+BSE&hl=en-IN&gl=IN&ceid=IN:en',
|
| 96 |
+
'https://news.google.com/rss/search?q=when:48h+intitle:("IPO+allotment"+OR+"IPO+listing"+OR+"Grey+Market+Premium")+India&hl=en-IN&gl=IN&ceid=IN:en',
|
| 97 |
+
'https://news.google.com/rss/search?q=when:48h+intitle:("Auto+sales"+OR+"USFDA")+India&hl=en-IN&gl=IN&ceid=IN:en',
|
| 98 |
+
'https://news.google.com/rss/search?q=when:48h+intitle:("Management+change"+OR+"CEO+resignation"+OR+"CFO+appointment")+India&hl=en-IN&gl=IN&ceid=IN:en'
|
| 99 |
];
|
| 100 |
|
| 101 |
|
|
|
|
| 235 |
isFetching = true;
|
| 236 |
const allEntries = [];
|
| 237 |
const now = new Date();
|
| 238 |
+
const fortyEightHoursAgo = new Date(now.getTime() - 48 * 60 * 60 * 1000);
|
| 239 |
|
| 240 |
const fetchPromises = RSS_FEEDS.map(async (url) => {
|
| 241 |
try {
|
|
|
|
| 247 |
const items = [];
|
| 248 |
feed.items.forEach(item => {
|
| 249 |
const pubDate = new Date(item.pubDate);
|
| 250 |
+
if (pubDate >= fortyEightHoursAgo) {
|
| 251 |
const fullText = `${item.title} ${item.contentSnippet || ''}`;
|
| 252 |
const analysis = sentiment.analyze(fullText);
|
| 253 |
items.push({
|