Giter Club home page Giter Club logo

stock_news's Introduction

Stock News Alert

This Python script fetches stock data using the Alpha Vantage API and news related to a specific company using the News API. If the percentage change in the stock price between yesterday and the day before yesterday is greater than or equal to 5%, it selects a random news article about the company and sends an email with the article's title and description.

Setup

  1. Requirements: Make sure you have Python installed on your system along with the requests library. You can install it using pip:

    pip install requests
  2. Alpha Vantage API Key: Obtain an API key from Alpha Vantage. Replace Your API KEY in the script with your actual API key.

  3. News API Key: Obtain an API key from News API. Replace Your API KEY in the script with your actual API key.

  4. Email Configuration: Replace your_email and your_password in the script with your actual email credentials.

  5. Company Name and Stock Symbol: Replace Select company name and Select stock symbol in the script with your actual company name and stock symbol.

Usage

Run the script using Python:

python main.py

stock_news's People

Contributors

evelinparvanov 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.