{"id":20147272,"url":"https://github.com/machphy/fb_sentiment_analysis","last_synced_at":"2025-08-10T03:06:35.235Z","repository":{"id":247521751,"uuid":"826079606","full_name":"machphy/fb_sentiment_analysis","owner":"machphy","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-09T04:54:51.000Z","size":1414,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T00:22:18.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/machphy.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-07-09T04:29:43.000Z","updated_at":"2024-07-20T18:34:58.000Z","dependencies_parsed_at":"2024-07-09T07:21:35.800Z","dependency_job_id":"1ce2b38d-786f-44be-9cef-2c37a9a018f5","html_url":"https://github.com/machphy/fb_sentiment_analysis","commit_stats":null,"previous_names":["machphy/fb_sentiment_analysis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/machphy/fb_sentiment_analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machphy%2Ffb_sentiment_analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machphy%2Ffb_sentiment_analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machphy%2Ffb_sentiment_analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machphy%2Ffb_sentiment_analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/machphy","download_url":"https://codeload.github.com/machphy/fb_sentiment_analysis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/machphy%2Ffb_sentiment_analysis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269668759,"owners_count":24456528,"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-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2024-11-13T22:28:16.896Z","updated_at":"2025-08-10T03:06:34.905Z","avatar_url":"https://github.com/machphy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://github.com/machphy/fb_sentiment_analysis/assets/115711628/7673e492-a106-44eb-b158-27584eb53140)# Facebook Sentiment Analysis\n\nThis project performs sentiment analysis on Facebook posts using Python. The analysis pipeline involves loading data from a CSV file, preprocessing the data, performing sentiment analysis, and visualizing the results.\n\n## Project Structure\n\nfbsa/\n│\n├── data/\n│ └── fb_scrapped_data.csv # Your CSV dataset file\n│\n├── scripts/\n│ ├── load_data.py # Loads the dataset from CSV\n│ ├── preprocess_data.py # Preprocesses the dataset\n│ ├── sentiment_analysis.py # Performs sentiment analysis\n│ └── visualize_results.py # Visualizes the results\n│\n├── main.py # Main script to run the analysis pipeline\n└── README.md # Project README file\n\n## Project Details\n\nThis project is designed to analyze the sentiment of Facebook posts. Sentiment analysis is a natural language processing (NLP) technique used to determine the emotional tone behind a body of text. It is commonly used to understand opinions, attitudes, and emotions expressed in online reviews, social media, and other forms of text.\n\n### Key Features\n\n- **Data Loading**: Loads Facebook post data from a CSV file.\n- **Data Preprocessing**: Cleans and preprocesses the data to make it suitable for analysis.\n- **Sentiment Analysis**: Analyzes the sentiment of each Facebook post using a sentiment analysis model.\n- **Visualization**: Visualizes the distribution of sentiment scores using a histogram.\n\n### Technologies Used\n\n- **Python**: The programming language used for the entire project.\n- **Pandas**: A data manipulation and analysis library used to handle the dataset.\n- **Matplotlib**: A plotting library used to visualize the results.\n\nScripts Overview\nmain.py\nThe main entry point of the project. It orchestrates data loading, preprocessing, sentiment analysis, and result visualization.\n\nload_data.py\nDefines a function to load the dataset from a CSV file.\n\npreprocess_data.py\nDefines functions for preprocessing the dataset.\n\nsentiment_analysis.py\nDefines functions for performing sentiment analysis.\n\nvisualize_results.py\nDefines functions for visualizing the results.\n\n\n### result \n\n1. **Resulting Graph Image**\n\n   Sentiment analysis sample:\n\n\u003cimg src=\"https://github.com/machphy/fb_sentiment_analysis/blob/main/IMG/Screenshot%202024-07-09%20095042.png?raw=true\" width=\"400\" height=\"300\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/machphy/fb_sentiment_analysis/main/IMG/Screenshot%202024-07-09%20005759.png\" width=\"400\" height=\"300\"\u003e\n\u003cimg src=\"https://github.com/machphy/fb_sentiment_analysis/blob/main/IMG/Screenshot%202024-07-09%20012945.png?raw=true\" width=\"400\" height=\"300\"\u003e\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachphy%2Ffb_sentiment_analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmachphy%2Ffb_sentiment_analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmachphy%2Ffb_sentiment_analysis/lists"}