{"id":30820799,"url":"https://github.com/damiancodes/kikao","last_synced_at":"2026-05-08T19:33:30.210Z","repository":{"id":313422064,"uuid":"1048678524","full_name":"damiancodes/kikao","owner":"damiancodes","description":"A multi-platform job aggregator that scrapes job listings from LinkedIn, Glassdoor, Indeed, and other job sites. Built with Django, Selenium, and Docker for production deployment.","archived":false,"fork":false,"pushed_at":"2025-09-05T22:42:30.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-06T00:20:49.471Z","etag":null,"topics":["django","django-rest-framework","python","selenium","webcrawler","webdriver"],"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/damiancodes.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-01T21:03:08.000Z","updated_at":"2025-09-05T22:42:33.000Z","dependencies_parsed_at":"2025-09-06T00:20:51.379Z","dependency_job_id":"8cda28ba-ca10-4b3d-b69d-82fe3f14346a","html_url":"https://github.com/damiancodes/kikao","commit_stats":null,"previous_names":["damiancodes/kikao"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/damiancodes/kikao","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damiancodes%2Fkikao","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damiancodes%2Fkikao/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damiancodes%2Fkikao/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damiancodes%2Fkikao/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damiancodes","download_url":"https://codeload.github.com/damiancodes/kikao/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damiancodes%2Fkikao/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32794715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["django","django-rest-framework","python","selenium","webcrawler","webdriver"],"created_at":"2025-09-06T10:02:39.634Z","updated_at":"2026-05-08T19:33:30.202Z","avatar_url":"https://github.com/damiancodes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Job Scraper Dashboard\n\n![Job Scraper Dashboard](https://res.cloudinary.com/dzs0hdqhd/image/upload/v1757204010/scrapperrrs_llrycj.png)\n\nA comprehensive multi-platform job aggregator that scrapes job listings from various job sites including LinkedIn, Glassdoor, Indeed, RemoteOK, BrighterMonday, Fuzu, and Jobright. Built with Django, Selenium, and Docker for production deployment with a modern Kenya Airways-inspired red and white theme.\n\n## Table of Contents\n\n- [Features](#features)\n- [Tech Stack](#tech-stack)\n- [Project Structure](#project-structure)\n- [Quick Start](#quick-start)\n- [Configuration](#configuration)\n- [API Documentation](#api-documentation)\n- [Job Sources](#job-sources)\n- [Development](#development)\n- [Deployment](#deployment)\n- [Troubleshooting](#troubleshooting)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\n\n### Core Functionality\n- **Multi-platform job scraping** from LinkedIn, Glassdoor, Indeed, RemoteOK, BrighterMonday, Fuzu, and Jobright\n- **Real-time job search** with instant results\n- **API integration** with Adzuna and custom Kenya Jobs API\n- **Duplicate job detection** and intelligent merging\n- **Advanced filtering** by location, company, salary, and job type\n- **CSV/Excel export** functionality for job data\n- **RESTful API** for data consumption and integration\n\n### User Interface\n- **Modern dashboard** with Kenya Airways-inspired red and white theme\n- **Responsive design** that works on desktop and mobile\n- **Real-time search results** with loading indicators\n- **Interactive job listings** with detailed information\n- **Admin panel** for system management\n- **Statistics overview** with job counts and metrics\n\n### Technical Features\n- **Asynchronous task processing** with Celery and Redis\n- **Docker containerization** for easy deployment\n- **Anti-detection measures** for reliable scraping\n- **Comprehensive logging** and error handling\n- **Database optimization** with proper indexing\n- **Caching strategies** for improved performance\n\n## Tech Stack\n\n### Backend\n- **Django 4.2.7** - Web framework\n- **Django REST Framework** - API development\n- **PostgreSQL** - Primary database (production)\n- **SQLite** - Development database\n- **Celery** - Asynchronous task queue\n- **Redis** - Message broker and caching\n\n### Scraping \u0026 Data Processing\n- **Selenium** - Web browser automation\n- **BeautifulSoup** - HTML parsing\n- **requests** - HTTP client for API calls\n- **Chrome WebDriver** - Browser automation engine\n\n### Frontend\n- **Django Templates** - Server-side rendering\n- **Bootstrap 5.3.0** - CSS framework\n- **jQuery** - JavaScript library\n- **Font Awesome** - Icon library\n- **Custom CSS** - Kenya Airways theme\n\n### Infrastructure\n- **Docker** - Containerization\n- **Docker Compose** - Multi-container orchestration\n- **Nginx** - Web server (production)\n- **Gunicorn** - WSGI server\n\n## Project Structure\n\n```\njob-scraper-dashboard/\n├── backend/                          # Django backend application\n│   ├── apps/                        # Django applications\n│   │   ├── jobs/                    # Job management and search\n│   │   │   ├── management/commands/ # Custom management commands\n│   │   │   ├── migrations/          # Database migrations\n│   │   │   ├── models.py           # Job and search models\n│   │   │   ├── serializers.py      # API serializers\n│   │   │   ├── views.py            # API and web views\n│   │   │   ├── urls.py             # URL routing\n│   │   │   ├── filters.py          # Query filtering\n│   │   │   └── admin.py             # Admin interface\n│   │   ├── companies/               # Company management\n│   │   │   ├── migrations/          # Database migrations\n│   │   │   ├── models.py           # Company models\n│   │   │   ├── serializers.py      # API serializers\n│   │   │   ├── views.py            # API views\n│   │   │   ├── urls.py             # URL routing\n│   │   │   ├── filters.py          # Query filtering\n│   │   │   └── admin.py             # Admin interface\n│   │   └── scraping/                # Web scraping engine\n│   │       ├── api_clients/         # External API integrations\n│   │       │   ├── adzuna.py        # Adzuna API client\n│   │       │   ├── jobright.py      # Jobright API client\n│   │       │   └── kenya_jobs.py    # Custom Kenya Jobs API\n│   │       ├── scrapers/            # Web scrapers\n│   │       │   ├── base.py          # Base scraper class\n│   │       │   ├── indeed.py        # Indeed scraper\n│   │       │   ├── glassdoor.py     # Glassdoor scraper\n│   │       │   ├── linkedin.py      # LinkedIn scraper\n│   │       │   ├── remoteok.py      # RemoteOK scraper\n│   │       │   ├── brightermonday.py # BrighterMonday scraper\n│   │       │   └── fuzu.py          # Fuzu scraper\n│   │       ├── management/commands/ # Custom management commands\n│   │       ├── migrations/          # Database migrations\n│   │       ├── models.py           # Scraping models\n│   │       ├── tasks.py            # Celery tasks\n│   │       ├── views.py            # API views\n│   │       ├── urls.py             # URL routing\n│   │       ├── serializers.py      # API serializers\n│   │       ├── utils.py            # Utility functions\n│   │       └── admin.py             # Admin interface\n│   ├── config/                      # Django configuration\n│   │   ├── settings/               # Environment-specific settings\n│   │   │   ├── base.py             # Base settings\n│   │   │   ├── development.py      # Development settings\n│   │   │   └── production.py       # Production settings\n│   │   ├── urls.py                 # Main URL configuration\n│   │   ├── wsgi.py                 # WSGI configuration\n│   │   ├── asgi.py                 # ASGI configuration\n│   │   └── celery.py               # Celery configuration\n│   ├── requirements/               # Python dependencies\n│   │   ├── base.txt                # Base requirements\n│   │   ├── dev.txt                 # Development requirements\n│   │   └── prod.txt                # Production requirements\n│   └── manage.py                   # Django management script\n├── frontend/                        # Frontend assets and templates\n│   ├── static/                     # Static files\n│   │   ├── css/                    # Stylesheets\n│   │   │   └── main.css            # Main stylesheet with Kenya Airways theme\n│   │   └── js/                     # JavaScript files\n│   │       └── main.js             # Main JavaScript file\n│   └── templates/                  # Django templates\n│       ├── base.html               # Base template\n│       ├── jobs/                   # Job-related templates\n│       │   ├── dashboard.html      # Main dashboard\n│       │   └── job_list.html       # Job listings page\n│       └── django_filters/         # Filter templates\n│           └── rest_framework/\n│               └── form.html       # Filter form template\n├── scripts/                        # Utility scripts\n│   ├── docker-logs.sh             # Docker logs script (Linux/Mac)\n│   ├── docker-logs.ps1            # Docker logs script (Windows)\n│   └── setup.sh                   # Setup script\n├── docker-compose.yml              # Docker Compose configuration\n├── Dockerfile                      # Docker image definition\n├── env.example                     # Environment variables example\n└── README.md                       # This file\n```\n\n## Quick Start\n\n### Prerequisites\n\n- Docker and Docker Compose\n- Git\n- Modern web browser\n\n### Local Development\n\n1. **Clone the repository**\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd job-scraper-dashboard\n   ```\n\n2. **Set up environment variables**\n   ```bash\n   cp env.example .env\n   # Edit .env with your configuration\n   ```\n\n3. **Build and run with Docker**\n   ```bash\n   docker-compose up --build\n   ```\n\n4. **Access the application**\n   - Dashboard: http://localhost:8000\n   - API: http://localhost:8000/api/\n   - Admin: http://localhost:8000/admin/\n\n### Cloud Deployment\n\n**Recommended Platforms:**\n- **Railway** (Best for this project) - [Deploy Guide](docs/DEPLOYMENT.md#railway-recommended)\n- **DigitalOcean App Platform** - [Deploy Guide](docs/DEPLOYMENT.md#digitalocean-app-platform)\n- **Heroku** - [Deploy Guide](docs/DEPLOYMENT.md#heroku)\n\n**Not Suitable:**\n- ❌ Vercel (No persistent database, 10s timeout limit)\n- ❌ Firebase (No Python runtime, no Selenium support)\n\n### First-time Setup\n\n1. **Create a superuser account**\n   ```bash\n   docker-compose exec web python manage.py createsuperuser\n   ```\n\n2. **Initialize job sources**\n   ```bash\n   docker-compose exec web python manage.py init_sources\n   ```\n\n3. **Run initial migrations**\n   ```bash\n   docker-compose exec web python manage.py migrate\n   ```\n\n## Configuration\n\n### Environment Variables\n\nCreate a `.env` file in the root directory with the following variables:\n\n```env\n# Django Settings\nDEBUG=True\nSECRET_KEY=your-secret-key-here\nALLOWED_HOSTS=localhost,127.0.0.1\n\n# Database\nDATABASE_URL=postgresql://user:password@db:5432/jobscraper\n\n# Redis\nREDIS_URL=redis://redis:6379/0\n\n# API Keys\nADZUNA_APP_ID=your-adzuna-app-id\nADZUNA_APP_KEY=your-adzuna-app-key\n\n# Scraping Settings\nCHROME_HEADLESS=True\nSCRAPING_DELAY=2\nMAX_CONCURRENT_SCRAPERS=3\n```\n\n### Job Sources Configuration\n\nThe system supports multiple job sources:\n\n- **Indeed** - Global job search\n- **Glassdoor** - Company reviews and jobs\n- **LinkedIn** - Professional network jobs\n- **RemoteOK** - Remote job opportunities\n- **BrighterMonday** - Kenya job market\n- **Fuzu** - East Africa job platform\n- **Jobright** - AI-powered job matching\n- **Adzuna** - Job search API\n\n## API Documentation\n\n### Base URL\n```\nhttp://localhost:8000/api/\n```\n\n### Authentication\nCurrently uses `AllowAny` permissions. For production, implement proper authentication.\n\n### Endpoints\n\n#### Jobs\n- `GET /api/jobs/` - List all jobs\n- `GET /api/jobs/{id}/` - Get specific job\n- `GET /api/jobs/statistics/` - Get job statistics\n- `GET /api/jobs/export/` - Export jobs to CSV\n\n#### Companies\n- `GET /api/companies/` - List all companies\n- `GET /api/companies/{id}/` - Get specific company\n- `GET /api/companies/statistics/` - Get company statistics\n\n#### Scraping Sessions\n- `GET /api/sessions/` - List scraping sessions\n- `GET /api/sessions/{id}/` - Get specific session\n- `POST /api/sessions/{id}/execute/` - Execute scraping session\n\n#### Job Sources\n- `GET /api/sources/` - List job sources\n- `GET /api/sources/{id}/` - Get specific source\n\n### Example API Usage\n\n```python\nimport requests\n\n# Get all jobs\nresponse = requests.get('http://localhost:8000/api/jobs/')\njobs = response.json()\n\n# Search jobs with filters\nparams = {\n    'search': 'python developer',\n    'location': 'Nairobi',\n    'employment_type': 'Full-time'\n}\nresponse = requests.get('http://localhost:8000/api/jobs/', params=params)\nfiltered_jobs = response.json()\n\n# Export jobs to CSV\nresponse = requests.get('http://localhost:8000/api/jobs/export/')\nwith open('jobs.csv', 'wb') as f:\n    f.write(response.content)\n```\n\n## Job Sources\n\n### Supported Platforms\n\n1. **Indeed** - Global job search engine\n   - Countries: US, UK, Canada, Australia, Kenya\n   - Features: Salary information, company details, location filtering\n\n2. **Glassdoor** - Company reviews and job listings\n   - Features: Company ratings, salary insights, interview reviews\n\n3. **LinkedIn** - Professional network job board\n   - Features: Professional networking, company connections\n\n4. **RemoteOK** - Remote job opportunities\n   - Features: Remote work focus, global opportunities\n\n5. **BrighterMonday** - Kenya job market\n   - Features: Local Kenyan jobs, company profiles\n\n6. **Fuzu** - East Africa job platform\n   - Features: Regional focus, career development\n\n7. **Jobright** - AI-powered job matching\n   - Features: Smart matching, personalized recommendations\n\n8. **Adzuna** - Job search API\n   - Features: Real-time data, comprehensive coverage\n\n### Scraping Strategy\n\n- **Anti-detection measures**: Random user agents, delays, stealth mode\n- **Rate limiting**: Respectful scraping with delays\n- **Error handling**: Comprehensive logging and retry mechanisms\n- **Data validation**: Clean and normalize scraped data\n- **Duplicate detection**: Intelligent merging of similar jobs\n\n## Development\n\n### Local Development Setup\n\n1. **Install Python dependencies**\n   ```bash\n   pip install -r backend/requirements/dev.txt\n   ```\n\n2. **Set up database**\n   ```bash\n   python backend/manage.py migrate\n   python backend/manage.py createsuperuser\n   ```\n\n3. **Run development server**\n   ```bash\n   python backend/manage.py runserver\n   ```\n\n4. **Run Celery worker** (in separate terminal)\n   ```bash\n   celery -A backend.config worker --loglevel=info\n   ```\n\n5. **Run Celery beat** (in separate terminal)\n   ```bash\n   celery -A backend.config beat --loglevel=info\n   ```\n\n### Running Tests\n\n```bash\npython backend/manage.py test\n```\n\n### Code Quality\n\n- **Linting**: Use flake8 or black for code formatting\n- **Type hints**: Add type annotations for better code clarity\n- **Documentation**: Follow Django documentation standards\n- **Testing**: Write unit tests for new features\n\n### Adding New Job Sources\n\n1. **Create scraper class** in `backend/apps/scraping/scrapers/`\n2. **Inherit from BaseScraper** and implement required methods\n3. **Add to scrapers dictionary** in `tasks.py`\n4. **Update models** if new fields are needed\n5. **Add tests** for the new scraper\n\nExample:\n```python\n# backend/apps/scraping/scrapers/new_source.py\nfrom .base import BaseScraper\n\nclass NewSourceScraper(BaseScraper):\n    def __init__(self):\n        super().__init__()\n        self.base_url = \"https://example.com\"\n    \n    def scrape_jobs(self, query, location=None, max_results=50):\n        # Implement scraping logic\n        pass\n```\n\n## Deployment\n\n### Production Deployment\n\n1. **Set up production environment**\n   ```bash\n   cp env.example .env.production\n   # Configure production settings\n   ```\n\n2. **Build production image**\n   ```bash\n   docker-compose -f docker-compose.prod.yml build\n   ```\n\n3. **Deploy with Docker Compose**\n   ```bash\n   docker-compose -f docker-compose.prod.yml up -d\n   ```\n\n### Environment-specific Settings\n\n- **Development**: Debug enabled, SQLite database, local Redis\n- **Production**: Debug disabled, PostgreSQL database, Redis cluster\n- **Testing**: In-memory database, mock external services\n\n### Monitoring and Logging\n\n- **Application logs**: Available via Docker logs\n- **Error tracking**: Implement Sentry or similar service\n- **Performance monitoring**: Use Django Debug Toolbar in development\n- **Health checks**: Implement health check endpoints\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Docker build fails**\n   - Check Docker and Docker Compose versions\n   - Ensure sufficient disk space\n   - Verify network connectivity\n\n2. **Database connection errors**\n   - Check database service status\n   - Verify connection credentials\n   - Ensure database is accessible\n\n3. **Scraping fails**\n   - Check internet connectivity\n   - Verify target websites are accessible\n   - Review anti-detection measures\n   - Check Chrome WebDriver installation\n\n4. **Static files not loading**\n   - Run `python manage.py collectstatic`\n   - Check static file configuration\n   - Verify web server configuration\n\n### Debugging\n\n1. **View application logs**\n   ```bash\n   docker-compose logs -f web\n   ```\n\n2. **Access container shell**\n   ```bash\n   docker-compose exec web bash\n   ```\n\n3. **Check database**\n   ```bash\n   docker-compose exec web python manage.py dbshell\n   ```\n\n4. **Run management commands**\n   ```bash\n   docker-compose exec web python manage.py \u003ccommand\u003e\n   ```\n\n### Performance Optimization\n\n1. **Database optimization**\n   - Add proper indexes\n   - Use database connection pooling\n   - Implement query optimization\n\n2. **Caching strategies**\n   - Redis caching for frequently accessed data\n   - Template fragment caching\n   - API response caching\n\n3. **Scraping optimization**\n   - Implement concurrent scraping\n   - Use headless browser mode\n   - Optimize selectors and parsing\n\n## Contributing\n\n### Development Workflow\n\n1. **Fork the repository**\n2. **Create a feature branch**\n3. **Make your changes**\n4. **Add tests for new features**\n5. **Ensure all tests pass**\n6. **Submit a pull request**\n\n### Code Standards\n\n- Follow PEP 8 for Python code\n- Use meaningful variable and function names\n- Add docstrings for functions and classes\n- Write comprehensive tests\n- Update documentation for new features\n\n### Pull Request Guidelines\n\n- Provide clear description of changes\n- Include screenshots for UI changes\n- Ensure all tests pass\n- Update documentation as needed\n- Follow the existing code style\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Support\n\nFor support and questions:\n\n- Create an issue in the GitHub repository\n- Check the troubleshooting section\n- Review the API documentation\n- Contact the development team\n\n## Changelog\n\n### Version 1.0.0\n- Initial release with multi-platform job scraping\n- Kenya Airways-inspired theme\n- Docker containerization\n- REST API implementation\n- Admin dashboard\n- CSV export functionality\n\n---\n\n**Built with Django, Selenium, and Docker for reliable job scraping and management.**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamiancodes%2Fkikao","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamiancodes%2Fkikao","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamiancodes%2Fkikao/lists"}