This project explores Tesla (TSLA) and GameStop (GME) financial data using a mix of APIs and web scraping.
It combines Python libraries such as yfinance
, pandas
, numpy
, matplotlib
, and BeautifulSoup
to gather, clean, and visualize revenue data.
- Yahoo Finance API (
yfinance
) β Download stock price history. - Web Scraping (
BeautifulSoup
) β Extract Tesla and GameStop revenue tables from web pages. - Data Cleaning (
pandas
,numpy
) β Parse dates, clean revenue values, handle missing data. - Data Visualization (
matplotlib
) β Plot revenue trends and stock prices over time.
- pandas
- numpy
- matplotlib
- yfinance
- BeautifulSoup (bs4)
- requests
- Scraping Revenue Data from company financial tables.
- Fetching Stock Prices from Yahoo Finance API.
- Merging & Cleaning Data: date parsing, revenue formatting, handling nulls.
- Visualization: plotting stock performance vs. revenue.
- Clone this repository:
git clone https://github.com/your-username/tesla-gme-revenue-analysis.git cd tesla-gme-revenue-analysis