Sentiment Analysis of Stocks from Financial News in Finviz website
- 1 minutes read - 121 wordsFeel free to visit FinViz website for fundamental ratios, technical indicators to news headlines and insider training data, it is a perfect stock screener. Furthermore, it has updated information on the performance of each sector, industry and any major stock index.
- Loaded the saved HTML files by identifying the folder path and directing BeautifulSoup to ‘read’ the table of headlines
- Parsed the scraped text into data and time, and Organized the data for Visualization and Analysis
- Implemented NLTK VADER for Sentiment Analysis, and Customized the Sentiment Scoring System
- Merged Sentiment scores and Headlines Data, and removed the duplicates to visualize the results
- Performed and Visualized the Sentiment on one single trading day for Facebook Stock
Tesla:
Facebook: