Coder Social home page Coder Social logo

news-vibes's Introduction

News_Vibes

Overview

This project is a Stock Sentiment Analysis tool built with Streamlit. It allows users to analyze the sentiment trend of a particular stock based on recent news headlines and visualize the stock's historical performance. The application fetches news articles related to the entered stock name, performs sentiment analysis on the headlines, and displays the sentiment trend over time. Additionally, it fetches and displays the historical open, close, and volume data for the stock. Users can also record their sentiment (Bullish or Bearish) for the stock, which is saved in a CSV file for future reference.

Features

  • News Article Fetching: Fetches recent news articles related to the entered stock name using the News API.
  • Sentiment Analysis: Performs sentiment analysis on news headlines using the DistilBERT model to determine the sentiment trend over time.
  • Stock Data Visualization: Fetches and displays historical stock data (open, close, volume) using the Alpha Vantage API and yfinance.
  • User Sentiment Recording: Allows users to record their sentiment (Bullish or Bearish) for the stock, which is saved in a CSV file.

Installation

  1. Clone the repository:

    git clone https://github.com/muditgaur-1009/News-Vibes.git
  2. Navigate to the project directory:

    cd News-Vibes
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Set up API keys:

  5. Run the application:

    streamlit run app.py

    The application will start running, and you can access it in your web browser at http://localhost:8501.

Usage

  1. Enter a Stock Name: In the input field, enter the name of the stock you want to analyze (e.g., "Adani Power", "Tatamotors").
  2. Analyze Sentiment: Click the "Analyze Sentiment" button to fetch news articles, perform sentiment analysis, and display the sentiment trend and historical stock data.
  3. Record Your Sentiment: After reviewing the analysis, you can record your sentiment (Bullish or Bearish) for the stock, which will be saved in a CSV file.

news-vibes's People

Contributors

muditgaur-1009 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.