{"id":30228520,"url":"https://github.com/45harry/financial_indicator_sentiment","last_synced_at":"2025-08-14T19:55:02.037Z","repository":{"id":308294521,"uuid":"1032290999","full_name":"45Harry/financial_indicator_sentiment","owner":"45Harry","description":"Real Time Sentiment Analysis using Financial Indicator to analyze the Intraday and Weekely Closing Price Sentiment","archived":false,"fork":false,"pushed_at":"2025-08-05T05:37:09.000Z","size":6304,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-05T07:22:16.694Z","etag":null,"topics":["real-time","sentiment-analysis","stock","webscraping"],"latest_commit_sha":null,"homepage":"","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/45Harry.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-05T05:21:04.000Z","updated_at":"2025-08-05T05:40:16.000Z","dependencies_parsed_at":"2025-08-05T07:33:11.690Z","dependency_job_id":null,"html_url":"https://github.com/45Harry/financial_indicator_sentiment","commit_stats":null,"previous_names":["45harry/financial_indicator_sentiment"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/45Harry/financial_indicator_sentiment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/45Harry%2Ffinancial_indicator_sentiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/45Harry%2Ffinancial_indicator_sentiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/45Harry%2Ffinancial_indicator_sentiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/45Harry%2Ffinancial_indicator_sentiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/45Harry","download_url":"https://codeload.github.com/45Harry/financial_indicator_sentiment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/45Harry%2Ffinancial_indicator_sentiment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270475433,"owners_count":24590076,"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":["real-time","sentiment-analysis","stock","webscraping"],"created_at":"2025-08-14T19:55:00.314Z","updated_at":"2025-08-14T19:55:02.009Z","avatar_url":"https://github.com/45Harry.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Financial Indicator Sentiment Analysis\n\nA comprehensive toolkit for analyzing and visualizing market sentiment for financial instruments using technical indicators, web scraping, and data science techniques.\n\n---\n\n## Table of Contents\n\n- [Features](#features)\n- [Project Structure](#project-structure)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Python API](#python-api)\n- [Modules Overview](#modules-overview)\n- [Data Sources](#data-sources)\n- [Notebooks](#notebooks)\n- [Dependencies](#dependencies)\n- [Contributing](#contributing)\n- [License](#license)\n\n---\n\n## Features\n\n- **Market Sentiment Prediction:** Predicts bullish/bearish/neutral sentiment for stocks using EMA-based technical analysis.\n- **Web Scraping:** Collects the latest stock data from online sources.\n- **Data Preprocessing:** Cleans and prepares raw data for analysis.\n- **Technical Indicator Calculation:** Computes EMAs and other indicators.\n- **Extensible Data Handling:** Supports multiple data sources and categories.\n\n---\n\n## Project Structure\n\n```\nfinancial_indicator_sentiment/\n│\n├── main.py                        # Main logic for sentiment prediction\n├── requirements.txt               # Python dependencies\n├── Market Sentiment Feature Technical Documentation.pdf\n│\n├── src/                           # Source code modules\n│   ├── data_preprocessing.py      # Data cleaning and preprocessing\n│   ├── ema_calculator.py          # EMA calculation logic\n│   └── webscrapper.py             # Web scraping utilities\n│\n├── data_from_api/                 # Example CSVs from APIs\n│   ├── STC.csv\n│   ├── CORBL.csv\n│   └── ... (other stock CSVs)\n│\n├── notebooks/                     # Jupyter notebooks for exploration\n│   ├── main.ipynb\n│   ├── webscrapping.ipynb\n│   └── closing_price_and_sma.png\n```\n\n---\n\n## Installation\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/45Harry/financial_indicator_sentiment\n   cd financial_indicator_sentiment\n   ```\n\n2. **Install dependencies:**\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n---\n\n## Usage\n\n### Python API\n\nYou can use the sentiment prediction logic in your own scripts:\n```python\nfrom main import predict_sentiment\n\nresult = predict_sentiment(\"NABIL\")\nprint(result)\n```\n\n---\n\n## Modules Overview\n\n- **main.py:** Orchestrates the sentiment prediction pipeline:\n  1. Web scrapes data for a symbol.\n  2. Preprocesses the data.\n  3. Calculates EMAs.\n  4. Computes bullish/bearish/neutral sentiment for intraday and weekly timeframes.\n\n- **src/webscrapper.py:** Contains functions to fetch the latest stock data from web sources.\n\n- **src/data_preprocessing.py:** Cleans and formats raw data for analysis.\n\n- **src/ema_calculator.py:** Calculates Exponential Moving Averages (EMAs) for different periods.\n\n---\n\n## Data Sources\n\n- **data_from_api/**: Contains sample CSVs for various stocks, used for testing and offline analysis.\n\n---\n\n## Notebooks\n\n- **notebooks/main.ipynb:** End-to-end workflow demonstration.\n- **notebooks/webscrapping.ipynb:** Web scraping experiments and data collection.\n- **notebooks/closing_price_and_sma.png:** Visualization of closing prices and SMAs.\n\n---\n\n## Dependencies\n\nKey dependencies (see `requirements.txt` for full list):\n\n- `pandas`, `numpy` - Data manipulation\n- `scikit-learn`, `scipy` - Data science utilities\n- `ta`, `pandas-ta` - Technical analysis\n- `requests`, `beautifulsoup4`, `selenium` - Web scraping\n- `matplotlib`, `seaborn`, `plotly` - Visualization\n\nInstall all dependencies with:\n```bash\npip install -r requirements.txt\n```\n\n---\n\n## Contributing\n\nContributions are welcome! Please open issues or pull requests for improvements, bug fixes, or new features.\n\n---\n\n## License\n\n[MIT License](LICENSE) (or specify your license here)\n\n---\n\n**For more details, see the included technical documentation PDF.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F45harry%2Ffinancial_indicator_sentiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F45harry%2Ffinancial_indicator_sentiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F45harry%2Ffinancial_indicator_sentiment/lists"}