{"id":24388186,"url":"https://github.com/lfmramos/tool-stock-visualization","last_synced_at":"2026-04-14T01:31:43.887Z","repository":{"id":262672498,"uuid":"887995486","full_name":"lfmramos/tool-stock-visualization","owner":"lfmramos","description":"This Python script creates a combined plot of stock price and revenue data for a given stock.","archived":false,"fork":false,"pushed_at":"2024-11-13T16:27:59.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T17:46:43.022Z","etag":null,"topics":["beautifulsoup","pandas","plotly","python","yfinance-api"],"latest_commit_sha":null,"homepage":"","language":"Python","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/lfmramos.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}},"created_at":"2024-11-13T16:26:32.000Z","updated_at":"2024-11-13T16:28:51.000Z","dependencies_parsed_at":"2024-11-16T04:01:52.657Z","dependency_job_id":null,"html_url":"https://github.com/lfmramos/tool-stock-visualization","commit_stats":null,"previous_names":["lfmramos/tool-stock-visualization"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lfmramos/tool-stock-visualization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfmramos%2Ftool-stock-visualization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfmramos%2Ftool-stock-visualization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfmramos%2Ftool-stock-visualization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfmramos%2Ftool-stock-visualization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lfmramos","download_url":"https://codeload.github.com/lfmramos/tool-stock-visualization/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lfmramos%2Ftool-stock-visualization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31778580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T00:11:49.126Z","status":"ssl_error","status_checked_at":"2026-04-14T00:10:29.837Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["beautifulsoup","pandas","plotly","python","yfinance-api"],"created_at":"2025-01-19T13:56:36.901Z","updated_at":"2026-04-14T01:31:43.864Z","avatar_url":"https://github.com/lfmramos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stock Visualization Tool\n\nThis Python script creates a combined plot of stock price and revenue data for a given stock.\n\n## Features\n\n- Fetches stock price and revenue data from online sources\n- Generates a dual-axis plot showing historical stock price and revenue\n- Allows customization of the date range for the data\n- Provides a clean and visually appealing data visualization\n\n## Dependencies\n\nThe script requires the following Python libraries:\n\n- `yfinance`: for fetching stock data\n- `pandas`: for data manipulation\n- `requests`: for making HTTP requests\n- `BeautifulSoup`: for parsing HTML\n- `plotly`: for creating the data visualization\n\nYou can install the required packages using pip:\n\n```\npip install yfinance pandas requests beautifulsoup4 plotly\n```\n\n## Usage\n\n1. Import the `make_graph` function from the script:\n\n   ```python\n   from stock_visualization import make_graph\n   ```\n\n2. Fetch the stock and revenue data:\n\n   ```python\n   stock_data = yf.download(\"AAPL\", start=\"2016-01-01\", end=\"2021-06-14\")\n   revenue_data = pd.read_csv(\"apple_revenue.csv\")\n   ```\n\n3. Call the `make_graph` function with the data:\n\n   ```python\n   make_graph(stock_data, revenue_data, \"Apple Inc.\")\n   ```\n\n   This will generate a combined plot of the stock price and revenue data for Apple Inc.\n\n## Example Output\n\nThe script will display a figure with two subplots:\n\n1. Historical Share Price\n2. Historical Revenue\n\nThe figure will include the following features:\n\n- X-axis: Date\n- Y-axis (left): Stock Price ($US)\n- Y-axis (right): Revenue ($US Millions)\n- Interactive zoom and pan functionality\n\n## Contributing\n\nIf you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfmramos%2Ftool-stock-visualization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flfmramos%2Ftool-stock-visualization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfmramos%2Ftool-stock-visualization/lists"}