Giter Site home page Giter Site logo

andreissirlene / stock-sentiment Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 176 KB

Generate investing insight by applying sentiment analysis on financial news headlines.

License: MIT License

Jupyter Notebook 16.23% HTML 83.77%
beautifulsoup-python-library html webscraping nltk sentiment intensity sentimentintensityanalyzer lexicon pandas-dataframe pyplot

stock-sentiment's Introduction

๐Ÿ“ˆ Stock-Sentiment

Stock Sentiment from news Headlines

"The way to get started is to quit talking and begin doing." - Walt Disney

๐Ÿ“Œ Table of Contents

๐Ÿ“ Introduction

In this notebook, we will generate investing insight by applying sentiment analysis on financial news headlines from [FINVIZ.com]. Using this natural language processing technique, we can understand the emotion behind the headlines and predict whether the market feels good or bad about a stock. It would then be possible to make educated guesses on how certain stocks will perform and trade accordingly. As web scraping requires data science ethic, the HTML files for Facebook and Tesla at various points in time have been downloaded from FINVIZ.

๐Ÿš€ Exploratory Data Analysis

The interesting data inside each table row () is in the text inside the and tags. So we parse the data for all tables in a comfortable data structure. Sentiment analysis is very sensitive to context. Remember that the reason we chose headlines is so we can try to extract sentiment from financial journalists, who like most professionals, have their own lingo.

Make NLTK think like a financial journalist by adding some new words and sentiment values to our lexicon.

๐ŸŽ‰ Exploratory Visualizations

To visualize the positive, negative and neutral scores for a single day of trading and a single stock either for Facebbok and Tesla I used Matplotlib. We will make an informative plot where we will see the smallest grain possible: headline and subscores.

๐Ÿ“• License

Released in February 2021. This project is under the MIT license.

Made with love by Sirlene Andreis ๐Ÿ’š๐Ÿš€

stock-sentiment's People

Contributors

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