{"id":20321848,"url":"https://github.com/hr-fahim/customer-sentiment-analysis-api","last_synced_at":"2026-04-22T03:32:26.784Z","repository":{"id":256494268,"uuid":"769227644","full_name":"HR-Fahim/Customer-Sentiment-Analysis-API","owner":"HR-Fahim","description":"Basic Sentiment Analysis API implemented with Python, Flask, and TextBlob.","archived":false,"fork":false,"pushed_at":"2024-03-08T15:58:12.000Z","size":12020,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T10:11:44.261Z","etag":null,"topics":["flask","textblob-sentiment-analysis"],"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/HR-Fahim.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-03-08T15:53:08.000Z","updated_at":"2024-09-10T23:09:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"1983e01c-7848-4228-a0f6-04678ca2f824","html_url":"https://github.com/HR-Fahim/Customer-Sentiment-Analysis-API","commit_stats":null,"previous_names":["hr-fahim/customer-sentiment-analysis-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HR-Fahim/Customer-Sentiment-Analysis-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HR-Fahim%2FCustomer-Sentiment-Analysis-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HR-Fahim%2FCustomer-Sentiment-Analysis-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HR-Fahim%2FCustomer-Sentiment-Analysis-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HR-Fahim%2FCustomer-Sentiment-Analysis-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HR-Fahim","download_url":"https://codeload.github.com/HR-Fahim/Customer-Sentiment-Analysis-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HR-Fahim%2FCustomer-Sentiment-Analysis-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32119814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"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":["flask","textblob-sentiment-analysis"],"created_at":"2024-11-14T19:17:36.383Z","updated_at":"2026-04-22T03:32:26.762Z","avatar_url":"https://github.com/HR-Fahim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Customer Sentiment Analysis API\n\nThis project demonstrates how to create a simple Sentiment Analysis API using Python, Flask, and TextBlob.\n\n## Setup\n\n### 1. Prerequisites\n\n- Python 3.x\n- pip (Python package manager)\n\n### 2. Clone the Repository\n\n```bash\ngit clone https://github.com/your-username/Sentiment-Analysis-API.git\ncd Sentiment-Analysis-API\n```\n\n### 3. Set Up Virtual Environment (Optional but Recommended)\n\n```bash\npython -m venv myenv\n```\n\nActivate the virtual environment:\n- On Windows:\n  ```bash\n  myenv\\Scripts\\activate\n  ```\n- On macOS/Linux:\n  ```bash\n  source myenv/bin/activate\n  ```\n\n### 4. Install Dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n## Usage\n\n### Running the Flask Application\n\n```bash\npython app.py\n```\n\nThe application should start running at `http://localhost:5000`.\n\n### Testing the API\n\nUse `curl` or Postman to test the API. Send a POST request to `http://localhost:5000/sentiment` with a JSON payload containing the text to be analyzed.\n\nExample using `curl`:\n\n```bash\ncurl -X POST http://localhost:5000/sentiment -H \"Content-Type: application/json\" -d '{\"text\": \"I love this product!\"}'\n```\nor\n\n```bash\nInvoke-RestMethod -Method Post -Uri http://localhost:5000/sentiment -ContentType \"application/json\" -Body '{\"text\": \"I love this product!\"}'\n```\n\n### Result\n\n![Sentiment Analysis API](https://github.com/HR-Fahim/Customer-Sentiment-Analysis-API/assets/66734379/26ed9402-0fd7-4baa-a477-ce388c563dd2)\n\nIt shows a response indicating the sentiment analysis result.\n\n## Future Work\n\nTo extend this project into a more sophisticated sentiment analysis system the following steps can be considered in future:\n- Collect a labeled dataset for training.\n- Train a machine learning model using libraries like scikit-learn or TensorFlow/Keras.\n- Integrate the trained model into the Flask API for sentiment analysis.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhr-fahim%2Fcustomer-sentiment-analysis-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhr-fahim%2Fcustomer-sentiment-analysis-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhr-fahim%2Fcustomer-sentiment-analysis-api/lists"}