{"id":23652047,"url":"https://github.com/mostafahima/smart-stock-tracker","last_synced_at":"2025-10-07T17:14:11.719Z","repository":{"id":268298896,"uuid":"903902709","full_name":"MostafaHima/Smart-Stock-Tracker","owner":"MostafaHima","description":"An interactive tool using APIs to fetch stock data and prices, display the latest news, and send a detailed report via email using SMTP.","archived":false,"fork":false,"pushed_at":"2024-12-15T21:16:32.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T02:09:50.772Z","etag":null,"topics":["api","requests-library-python","smtplib","tracker"],"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/MostafaHima.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-12-15T21:06:11.000Z","updated_at":"2024-12-15T21:16:36.000Z","dependencies_parsed_at":"2024-12-15T22:19:28.569Z","dependency_job_id":"ffa6433f-16af-4c2b-804b-30de547847a7","html_url":"https://github.com/MostafaHima/Smart-Stock-Tracker","commit_stats":null,"previous_names":["mostafahima/smart-stock-tracker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MostafaHima/Smart-Stock-Tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostafaHima%2FSmart-Stock-Tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostafaHima%2FSmart-Stock-Tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostafaHima%2FSmart-Stock-Tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostafaHima%2FSmart-Stock-Tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MostafaHima","download_url":"https://codeload.github.com/MostafaHima/Smart-Stock-Tracker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MostafaHima%2FSmart-Stock-Tracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278811870,"owners_count":26050186,"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-10-07T02:00:06.786Z","response_time":59,"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":["api","requests-library-python","smtplib","tracker"],"created_at":"2024-12-28T16:50:11.627Z","updated_at":"2025-10-07T17:14:11.697Z","avatar_url":"https://github.com/MostafaHima.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart Stock Tracker\n\n## Description\nAn interactive tool using APIs to fetch stock data and prices, display the latest news about the stock, and send a detailed report via email using SMTP.\n\n---\n\n## Features\n- **Fetch Stock Data**: Retrieves real-time stock data including opening, closing, high, and low prices using the Alpha Vantage API.\n- **Get News Articles**: Fetches the latest news articles related to the stock from NewsAPI.\n- **Email Reports**: Sends a comprehensive email report with stock data and news insights using SMTP.\n\n---\n\n## Requirements\n- Python 3.9 or higher\n- API keys for:\n  - [Alpha Vantage](https://www.alphavantage.co/)\n  - [NewsAPI](https://newsapi.org/)\n- SMTP email service credentials\n\n---\n\n## Installation\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/MostafaHima/Smart-Stock-Tracker.git\n   ```\n2. Navigate to the project directory:\n   ```bash\n   cd Smart Stock Tracker\n   ```\n3. Install the required dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n---\n\n## Usage\n1. Set up your environment variables for API keys and SMTP credentials:\n   - `ALPHAVANTAGE_API_KEY`: Your Alpha Vantage API key\n   - `NEWSAPI_API_KEY`: Your NewsAPI key\n   - `SMTP_EMAIL`: Your email address\n   - `SMTP_PASSWORD`: Your email password\n\n2. Run the main script:\n   ```bash\n   python main.py\n   ```\n3. Enter the stock name when prompted, and the tool will handle the rest!\n\n---\n\n## File Structure\n- **get_stock_data.py**: Handles fetching stock data from Alpha Vantage.\n- **get_stock_news.py**: Fetches news articles related to the stock from NewsAPI.\n- **send_mail.py**: Sends email reports using SMTP.\n- **main.py**: Orchestrates the flow of the application.\n\n---\n\n## Example Output\n### Email Content\n- **Subject**: Stock Update: [Stock Symbol] Prices \u0026 Insights\n- **Body**:\n  - Date: [Latest Trading Day]\n  - Open Price: [Price]\n  - High Price: [Price]\n  - Low Price: [Price]\n  - Close Price: [Price]\n  - News Title: [Article Title]\n  - Author: [Article Author]\n  - Content: [Article Summary]\n  - Read more: [Article URL]\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostafahima%2Fsmart-stock-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmostafahima%2Fsmart-stock-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmostafahima%2Fsmart-stock-tracker/lists"}