{"id":27471097,"url":"https://github.com/swish78/linkedin-insider-","last_synced_at":"2025-04-16T01:39:04.019Z","repository":{"id":282289873,"uuid":"948088558","full_name":"Swish78/linkedin-insider-","owner":"Swish78","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-13T19:00:45.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T19:42:14.985Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Swish78.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-03-13T18:20:51.000Z","updated_at":"2025-03-13T19:00:49.000Z","dependencies_parsed_at":"2025-03-13T23:31:02.130Z","dependency_job_id":null,"html_url":"https://github.com/Swish78/linkedin-insider-","commit_stats":null,"previous_names":["swish78/linkedin-insider-"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swish78%2Flinkedin-insider-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swish78%2Flinkedin-insider-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swish78%2Flinkedin-insider-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swish78%2Flinkedin-insider-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Swish78","download_url":"https://codeload.github.com/Swish78/linkedin-insider-/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249182790,"owners_count":21226123,"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":[],"created_at":"2025-04-16T01:39:03.433Z","updated_at":"2025-04-16T01:39:04.008Z","avatar_url":"https://github.com/Swish78.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LinkedIn Insider\n\nLinkedIn Insider is a powerful tool that scrapes LinkedIn company pages and posts, stores the data in MongoDB, manages images through AWS S3, and provides AI-powered insights using LLAMA.\n\n## Features\n\n- **Company Information Scraping**: Extract detailed company profiles including name, description, industry, employee count, and specialties\n- **Post Analytics**: Scrape and analyze company posts with engagement metrics (likes, comments)\n- **Employee Insights**: Gather information about key employees and their roles\n- **Image Management**: Automatic profile picture handling through AWS S3\n- **AI-Powered Analysis**: Generate company insights using Groq's LLM API\n- **Scalable Storage**: MongoDB integration for efficient data management\n- **RESTful API**: FastAPI-based endpoints with filtering and pagination\n\n## Tech Stack\n\n- **Backend Framework**: FastAPI\n- **Database**: MongoDB\n- **Cloud Storage**: AWS S3\n- **AI Integration**: Groq API (llama-3.2-3b-preview model)\n- **Scraping Tool**: Crawl4AI\n- **Language**: Python 3.x\n\n## Prerequisites\n\n- Python 3.x\n- MongoDB Atlas account\n- AWS account with S3 access\n- Groq API key\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/linkedin-insider.git\n   cd linkedin-insider\n   ```\n\n2. Create and activate a virtual environment:\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  \n   ```\n\n3. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Set up environment variables in `.env` file:\n   ```env\n   # Groq API\n   GROQ_API_KEY=your_groq_api_key\n\n   # MongoDB\n   MONGODB_URI=your_mongodb_connection_string\n\n   # AWS\n   BUCKET_NAME=your_s3_bucket_name\n   AWS_ACCESS_KEY_ID=your_aws_access_key\n   AWS_SECRET=your_aws_secret_key\n   ```\n\n## API Endpoints\n\n### Company Information\n\n- `GET /api/pages/{page_id}`\n  - Retrieves detailed information about a company\n  - Includes company profile, posts, and AI-generated insights\n  - Auto-scrapes data if not in database\n  - Response: LinkedInPage object containing:\n    - Basic info (name, description, website, industry)\n    - Follower and employee counts\n    - Profile picture URL\n    - Specialties list\n    - Employee list\n    - Recent posts\n    - AI-generated insights\n\n- `GET /api/pages`\n  - List companies with filtering options\n  - Query Parameters:\n    - `min_followers`: Minimum follower count (optional)\n    - `max_followers`: Maximum follower count (optional)\n    - `industry`: Filter by industry (optional)\n    - `skip`: Pagination offset (default: 0)\n    - `limit`: Results per page (1-100, default: 10)\n  - Response: Array of LinkedInPage objects\n\n### Company Posts\n\n- `GET /api/pages/{page_id}/posts`\n  - Retrieve company posts with engagement metrics\n  - Query Parameters:\n    - `skip`: Offset (default: 0)\n    - `limit`: Posts per page (1-100, default: 10)\n  - Response: Array of Post objects containing:\n    - Post ID\n    - Content\n    - Engagement metrics (likes, comments)\n\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswish78%2Flinkedin-insider-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswish78%2Flinkedin-insider-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswish78%2Flinkedin-insider-/lists"}