{"id":21894900,"url":"https://github.com/rajputrockstar/spam-detection","last_synced_at":"2025-03-22T04:21:43.736Z","repository":{"id":216240013,"uuid":"740808700","full_name":"RAJPUTRoCkStAr/Spam-detection","owner":"RAJPUTRoCkStAr","description":"This is Spam detection with machine learning and streamlit","archived":false,"fork":false,"pushed_at":"2024-08-19T04:18:33.000Z","size":5423,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T05:46:30.672Z","etag":null,"topics":["machine-learning","machine-learning-algorithms","models","python","python-script","python3","sklearn","streamlit","streamlit-application","streamlit-dashboard","streamlit-webapp"],"latest_commit_sha":null,"homepage":"https://github.com/RAJPUTRoCkStAr/Spam-detection","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/RAJPUTRoCkStAr.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-01-09T05:31:56.000Z","updated_at":"2024-08-19T04:18:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8fe56ae-abc1-4be9-948d-1a79dca04d2a","html_url":"https://github.com/RAJPUTRoCkStAr/Spam-detection","commit_stats":null,"previous_names":["rajputrockstar/spam-detection"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RAJPUTRoCkStAr%2FSpam-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RAJPUTRoCkStAr%2FSpam-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RAJPUTRoCkStAr%2FSpam-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RAJPUTRoCkStAr%2FSpam-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RAJPUTRoCkStAr","download_url":"https://codeload.github.com/RAJPUTRoCkStAr/Spam-detection/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244904330,"owners_count":20529414,"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","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":["machine-learning","machine-learning-algorithms","models","python","python-script","python3","sklearn","streamlit","streamlit-application","streamlit-dashboard","streamlit-webapp"],"created_at":"2024-11-28T13:29:24.423Z","updated_at":"2025-03-22T04:21:43.711Z","avatar_url":"https://github.com/RAJPUTRoCkStAr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spam Detection Project\n\nThis project aims to detect spam messages using various machine learning techniques. It includes data preprocessing, model training, evaluation, and real-time Gmail message analysis with a word cloud visualization.\n\n## Features\n\n- **Data Preprocessing**: Cleaning and preparing the dataset for training.\n- **Model Training**: Training multiple machine learning models to classify spam and non-spam messages.\n- **Model Evaluation**: Evaluating the performance of the trained models using metrics like accuracy, precision, recall, and F1 score.\n- **Real-time Gmail Analysis**: Analyzing Gmail messages in real-time to detect spam and visualize the results using a word cloud.\n- **Robot Integration**: Automated bot for fetching and processing Gmail messages.\n\n## Installation\n\nTo run the project locally, follow these steps:\n\n1. **Clone the repository**:\n    ```bash\n    git clone https://github.com/RAJPUTRoCkStAr/Spam-detection.git\n    cd spam-detection\n    ```\n\n2. **Install the required dependencies**:\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n3. **Run the Code**:\n    ```bash\n    streamlit run app.py\n    ```\n\n\n\n## Usage\n\nThe project provides several scripts for different stages of the spam detection process:\n\n1. **Data Preprocessing**\n2. **Model Training**\n3. **Model Evaluation**\n4. **Prediction**\n5. **Real-time Gmail Analysis**\n6. **Word Cloud Visualization**\n7. **Jarvis**\n\n\n\n\nFor live usage and demo, visit [Spam Detection Project Demo](https://spam-detection-ml.streamlit.app/).\n\n\n## Data Files\n\nEnsure that the following data files are available in the `data/` directory:\n\n- `spam.csv`: The dataset containing spam and non-spam messages.\n\n## Custom Functions\n\nThe project uses custom functions to preprocess data, train models, and make predictions:\n\n- `preprocess_data()`: Cleans and preprocesses the dataset.\n- `train_model()`: Trains the machine learning models.\n- `evaluate_model()`: Evaluates the performance of the trained models.\n- `predict()`: Predicts whether a given message is spam or not.\n- `fetch_gmail_messages()`: Fetches messages from Gmail using the Gmail API.\n- `generate_wordcloud()`: Generates a word cloud from the fetched Gmail messages.\n\n## License\n\nThis project is licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajputrockstar%2Fspam-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajputrockstar%2Fspam-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajputrockstar%2Fspam-detection/lists"}