{"id":30232258,"url":"https://github.com/rakumar99/extracting-and-visualizing-stock-data","last_synced_at":"2025-10-12T09:01:54.652Z","repository":{"id":309122567,"uuid":"1035232822","full_name":"rakumar99/Extracting-and-Visualizing-Stock-Data","owner":"rakumar99","description":"This project extracts and cleans historical stock prices and quarterly revenue data for Tesla and GameStop using Python. It visualizes the data with interactive graphs to compare stock performance against revenue trends.","archived":false,"fork":false,"pushed_at":"2025-08-10T00:22:01.000Z","size":1450,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-10T02:26:38.617Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rakumar99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-10T00:04:25.000Z","updated_at":"2025-08-10T00:22:04.000Z","dependencies_parsed_at":"2025-08-10T02:37:05.940Z","dependency_job_id":null,"html_url":"https://github.com/rakumar99/Extracting-and-Visualizing-Stock-Data","commit_stats":null,"previous_names":["rakumar99/extracting-and-visualizing-stock-data"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rakumar99/Extracting-and-Visualizing-Stock-Data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakumar99%2FExtracting-and-Visualizing-Stock-Data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakumar99%2FExtracting-and-Visualizing-Stock-Data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakumar99%2FExtracting-and-Visualizing-Stock-Data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakumar99%2FExtracting-and-Visualizing-Stock-Data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rakumar99","download_url":"https://codeload.github.com/rakumar99/Extracting-and-Visualizing-Stock-Data/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakumar99%2FExtracting-and-Visualizing-Stock-Data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270500503,"owners_count":24595156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-14T23:40:15.768Z","updated_at":"2025-10-12T09:01:54.599Z","avatar_url":"https://github.com/rakumar99.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Analyzing Historical Stock and Revenue Data\n\nThis project extracts, cleans, and visualizes historical stock price and quarterly revenue data for Tesla (TSLA) and GameStop (GME) using Python. It demonstrates how financial and revenue data can be combined to provide insights into company performance.\n\n## Features\n\n- Fetches historical stock data using the `yfinance` library.\n- Scrapes quarterly revenue data from Macrotrends website with `requests` and `BeautifulSoup`.\n- Cleans and preprocesses data for accurate analysis.\n- Visualizes stock prices and revenue trends with interactive Plotly graphs.\n- Provides a comparative dashboard to analyze stock performance against revenue.\n\n## Installation\n\nMake sure you have the following Python libraries installed:\n\n```bash\npip install yfinance pandas requests beautifulsoup4 plotly\nUsage\nRun the Python scripts or Jupyter notebook cells sequentially to:\n\nDownload Tesla and GameStop stock data.\n\nScrape and clean quarterly revenue data.\n\nGenerate interactive plots comparing stock prices and revenues.\n\nUse the provided make_graph() function to visualize the data.\n\nExample\npython\nCopy\nEdit\nmake_graph(tesla_data, tesla_revenue, \"Tesla (revenue vs. price comparison)\")\nmake_graph(gme_data, gme_revenue, \"GameStop (revenue vs. price comparison)\")\nProject Structure\nstock_data_extraction.py - Scripts to download stock data using yfinance.\n\nrevenue_scraping.py - Web scraping scripts to get revenue data.\n\nvisualization.ipynb - Jupyter notebook with analysis and interactive graphs.\n\nLicense\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakumar99%2Fextracting-and-visualizing-stock-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frakumar99%2Fextracting-and-visualizing-stock-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakumar99%2Fextracting-and-visualizing-stock-data/lists"}