A comprehensive system for collecting, analyzing, and storing news sentiment data for NIFTY-50 stocks using aspect-based sentiment analysis.
This project fetches real-time news data for NIFTY-50 stocks from Google News RSS feeds and performs aspect-based sentiment analysis on various financial metrics. The system analyzes sentiment across multiple aspects like Earnings, Revenue, Margins, and more, storing the results in a SQLite database for further analysis.
pandas
feedparser
tqdm
sqlite3
torch
transformers
sentence-transformers
rss_scrapper.py: News collection modulenews_collectordb.py: Database management and coordinationabsa.py: Aspect-based sentiment analysis implementationgit clone https://github.com/yourusername/stock-news-sentiment.git
cd stock-news-sentiment
pip install pandas feedparser tqdm torch transformers sentence-transformers
Run the main script to start collecting and analyzing news:
python news_collectordb.py
The SQLite database stores the following information for each news article:
The system uses two types of sentiment analysis:
Sentiment scores range from -1 (negative) to 1 (positive), with 0 indicating neutral sentiment.
Pratyush Kant Sirjan Hansda
41 commits
Jupyter Notebook
91.0%
Python
8.9%
A comprehensive system for collecting, analyzing, and storing news sentiment data for NIFTY-50 stocks using aspect-based sentiment analysis.
This project fetches real-time news data for NIFTY-50 stocks from Google News RSS feeds and performs aspect-based sentiment analysis on various financial metrics. The system analyzes sentiment across multiple aspects like Earnings, Revenue, Margins, and more, storing the results in a SQLite database for further analysis.
pandas
feedparser
tqdm
sqlite3
torch
transformers
sentence-transformers
rss_scrapper.py: News collection modulenews_collectordb.py: Database management and coordinationabsa.py: Aspect-based sentiment analysis implementationgit clone https://github.com/yourusername/stock-news-sentiment.git
cd stock-news-sentiment
pip install pandas feedparser tqdm torch transformers sentence-transformers
Run the main script to start collecting and analyzing news:
python news_collectordb.py
The SQLite database stores the following information for each news article:
The system uses two types of sentiment analysis:
Sentiment scores range from -1 (negative) to 1 (positive), with 0 indicating neutral sentiment.
Pratyush Kant Sirjan Hansda
41 commits
Jupyter Notebook
91.0%
Python
8.9%