A personal AI-powered job search assistant that scrapes LinkedIn and Indeed every 2 days across 10 EU countries, scores each listing against your CV using an LLM, and emails you a curated digest with tailored cover letters β so you only see roles worth your time. Runs in ~5 minutes end-to-end using fully parallel scraping and scoring.
- Scrapes LinkedIn + Indeed across multiple countries and cities
- Scores every job against your CV profile using an LLM (0β100% match)
- Filters out anything below your threshold (default: 70%)
- Detects relocation/visa sponsorship mentions automatically
- Writes a tailored 2-paragraph cover letter for each passing job
- Emails a rich HTML digest grouped by country, sorted by match %
π©πͺ Germany β 4 matches
[85%] Senior Cloud Security Engineer @ N26 Β· Berlin Β· β
Relocation
β Why it matches: AWS + K8s security, Wiz CNAPP, GDPR compliance
β Cover Letter:
"At N26, where cloud-native security at scale is a core engineering..."
[78%] DevSecOps Engineer @ Siemens Β· Munich Β· linkedin
...
| Stage | Time |
|---|---|
| Scraping (10 countries, parallel) | ~2 min |
| Scoring (parallel subprocess batches) | ~3 min |
| Total end-to-end | ~5 min |
Previous sequential approach took ~75 min. Parallel architecture = 14x speedup.
| Layer | Tool | Cost |
|---|---|---|
| Scraping | JobSpy (LinkedIn + Indeed) | Free |
| Parallel scraping | ThreadPoolExecutor (6 workers) |
Free |
| AI Scoring & Cover Letters | Any OpenAI-compatible LLM (DeepSeek-V3.2 default) | Pay-per-use |
| Scoring | Parallel subprocess batches of 40 (avoids 128k token limit) | - |
| Pre-filter | Title keyword filter (removes junk before AI) | Free |
| Deduplication | SQLite (stdlib) | Free |
| Resend.com | Free (3k/month) | |
| Template | Jinja2 HTML | Free |
| Infrastructure | Any Linux VPS or cloud VM | ~$5β10/month |
| Scheduler | Linux cron | Free |
- Python 3.11 or 3.12
- A Linux server (VPS, cloud VM, or local machine)
- An OpenAI-compatible API key (Azure AI Foundry, OpenAI, etc.)
- A Resend.com account (free)
git clone https://gitlab.com/mohamed_elbeltagy/job-digest.git
cd job-digestpython3 -m venv .venv
source .venv/bin/activate # Linux/macOS
# On Windows: .venv\Scripts\activatepip install -r requirements.txtNote: If
jobspyinstalls as the wrong package, run:pip uninstall jobspy -y && pip install python-jobspy
playwright install chromium
playwright install-deps chromium # Linux only β installs OS-level depsOn Ubuntu 24.04, if you get a
libasound2error:sudo apt install -y libasound2t64 PLAYWRIGHT_BROWSERS_PATH=/opt/job-digest/.playwright playwright install chromiumThen add
PLAYWRIGHT_BROWSERS_PATH=/opt/job-digest/.playwrightto your.env
Copy the example file and fill in your values:
cp .env.example .env
nano .envYour .env should look like this:
# LLM API (Azure AI Foundry, OpenAI, or any compatible endpoint)
AZURE_AI_ENDPOINT=https://YOUR-RESOURCE.services.ai.azure.com/
AZURE_AI_API_KEY=your_api_key_here
AZURE_AI_MODEL=DeepSeek-V3.2 # or gpt-4o-mini, gpt-4o, etc.
# Email delivery (https://resend.com β free tier)
RESEND_API_KEY=re_your_key_here
DIGEST_TO_EMAIL=your@email.com
DIGEST_FROM_EMAIL=digest@yourdomain.com # or onboarding@resend.dev for testing
# Optional tuning
MAX_JOBS_PER_SOURCE=25 # jobs per search query (lower = faster)
PLAYWRIGHT_BROWSERS_PATH=/opt/job-digest/.playwright # only needed if Playwright install path differsOpen config.py and update these sections:
# 1. Your job search terms
SEARCH_TERMS = [
"Senior Cloud Security Engineer",
"DevSecOps Engineer",
"Kubernetes Security",
]
# 2. Target countries and cities
SEARCH_LOCATIONS = [
("germany", "Germany", ["Germany", "Berlin", "Munich"]),
("netherlands", "Netherlands", ["Netherlands", "Amsterdam"]),
...
]
# 3. Minimum match score to appear in digest (0-100)
MIN_SCORE_TO_INCLUDE = 70
# 4. YOUR CV profile β this drives AI matching and cover letter generation
CV_PROFILE = """
Your Name β Your Title
X years experience in ...
Core strengths:
- Skill 1
- Skill 2
...
Seeking: [role type]
Location: Relocating from [city] to [target region]
Languages: ...
"""Tip: The more specific and accurate your
CV_PROFILE, the better the match scores and cover letters will be. Include technologies, frameworks, certifications, and seniority level.
# Quick test β skip Xing, save HTML preview instead of emailing
python run.py --dry-run --no-xing
# Full test including Xing scraping
python run.py --dry-runOpen digest_preview_YYYY-MM-DD.html in your browser to see what the email looks like.
python run.py --no-xing # LinkedIn + Indeed only (faster)
python run.py # Full run including XingCheck your inbox β the digest should arrive within 60 seconds.
# Create the run script
cat > /opt/job-digest/run_digest.sh << 'EOF'
#!/bin/bash
cd /opt/job-digest
source .venv/bin/activate
python run.py >> /var/log/job-digest.log 2>&1
EOF
chmod +x /opt/job-digest/run_digest.sh
# Create log file
sudo touch /var/log/job-digest.log
sudo chmod 666 /var/log/job-digest.log
# Add to cron β runs at 8am every 2 days
crontab -e
# Add this line:
0 8 */2 * * /opt/job-digest/run_digest.shMonitor logs:
tail -f /var/log/job-digest.log- Open Task Scheduler β Create Basic Task
- Trigger: Daily, repeat every 2 days
- Action: Start a program
- Program:
C:\path\to\job-digest\.venv\Scripts\python.exe - Arguments:
run.py - Start in:
C:\path\to\job-digest
- Program:
When you push changes to the repo, deploy to your VPS with:
ssh user@YOUR_VPS_IP
cd /opt/job-digest
git pull origin main
source .venv/bin/activate
pip install -r requirements.txt # only if requirements.txt changedEverything you need to change is in two files only:
| Setting | What to change |
|---|---|
SEARCH_TERMS |
Job titles you're targeting |
SEARCH_LOCATIONS |
Countries and cities to search |
MIN_SCORE_TO_INCLUDE |
Strictness (60 = more jobs, 80 = fewer, higher quality) |
RELOCATION_KEYWORDS |
Add keywords in local languages if needed |
CV_PROFILE |
Your most important change β paste your own background here |
DEDUP_DAYS |
How long before a seen job can reappear (default: 30 days) |
| Variable | What to change |
|---|---|
AZURE_AI_MODEL |
Switch to gpt-4o-mini, gpt-4o, DeepSeek-V3, Mistral, etc. |
DIGEST_TO_EMAIL |
Your email address |
MAX_JOBS_PER_SOURCE |
Lower (10) for faster runs, higher (50) for broader coverage |
The scorer uses any OpenAI-compatible API. To switch:
OpenAI:
AZURE_AI_ENDPOINT=https://api.openai.com/
AZURE_AI_API_KEY=sk-...
AZURE_AI_MODEL=gpt-4o-miniAzure AI Foundry (DeepSeek, Mistral, Llama, etc.):
AZURE_AI_ENDPOINT=https://YOUR-RESOURCE.services.ai.azure.com/
AZURE_AI_API_KEY=...
AZURE_AI_MODEL=DeepSeek-V3.2 # or Mistral-large, Llama-3.3-70B-Instruct, etc.Local Ollama:
AZURE_AI_ENDPOINT=http://localhost:11434/
AZURE_AI_API_KEY=ollama
AZURE_AI_MODEL=llama3.1job-digest/
βββ run.py # Entry point β orchestrates the pipeline
βββ config.py # βοΈ All tunables: CV profile, countries, threshold
βββ requirements.txt
βββ .env.example # Template for secrets
βββ .gitlab-ci.yml # CI pipeline: lint + tests + SAST security checks
βββ scripts/
β βββ check_secrets.py # Called by CI detect-secrets job
β
βββ scrapers/
β βββ jobspy_scraper.py # Parallel scraping via ThreadPoolExecutor (6 workers)
β
βββ matching/
β βββ scorer.py # Parallel subprocess batch scoring (40 jobs/batch)
β # Each subprocess = fresh API session (no 128k limit)
β
βββ storage/
β βββ db.py # SQLite deduplication (30-day window)
β
βββ email_digest/
β βββ renderer.py # Jinja2 HTML rendering
β βββ sender.py # Resend.com delivery
β βββ templates/
β βββ digest.html.j2 # Email HTML template
β
βββ tests/
βββ test_db.py
βββ test_scorer.py # Tests pre-filter, relocation detection, enrich_jobs
βββ test_renderer.py
βββ fixtures/sample_jobs.json
python -m pytest tests/ -vTests use mocked API calls β no real LLM calls or emails are made.
| Component | Usage | Cost |
|---|---|---|
| VPS (Azure B2s, Sweden Central) | Always on | ~$30/month (or free with startup credits) |
| LLM scoring (DeepSeek-V3.2 via Azure AI Foundry) | ~630 jobs Γ 2 runs/week, parallel batches | ~$0.20β0.50/month |
| Resend email | 2 emails/week | Free (3,000/month limit) |
| Total | ~$0.50β1/month (after credits) |
Using Azure for Startups ($1,000 credit): $0/month for 12+ months.
The AI model scores each job 0β100 with these rules:
- Base score: technical skill overlap with job requirements
- +10 bonus: relocation support / visa sponsorship mentioned
- +5 bonus: startup or scale-up company
- +5 bonus: fewer than 25 applicants or posted <24h ago
- -15 penalty: purely consulting/advisory, no hands-on engineering
- -10 penalty: requires EU/local citizenship only
- Hard cap 50: zero cloud/security/devops overlap
Default threshold: 75% β only genuinely strong matches reach your inbox.
pip uninstall jobspy -y
pip install python-jobspy- Check your deployment name in Azure AI Foundry β Deployments
- Update
AZURE_AI_MODELin.envto match exactly
sudo apt install -y libasound2t64
PLAYWRIGHT_BROWSERS_PATH=~/.playwright playwright install chromium
echo "PLAYWRIGHT_BROWSERS_PATH=$HOME/.playwright" >> .envGlassdoor actively blocks scraping. This is expected β the bot uses LinkedIn and Indeed only by default. Glassdoor is excluded from site_name in the scraper.
LinkedIn sometimes rate-limits by IP. If running locally, try from a VPS with a European IP address. EU IPs (Germany, Netherlands) get much better results for EU job searches.
The project includes a GitLab CI pipeline (.gitlab-ci.yml) with the following free stages:
lint β test β security β build
Add this file to the root of the repo:
stages:
- lint
- test
- security
default:
image: python:3.12-slim # explicit Python image β avoids ruby/default runner issues
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
- .venv/
before_script:
- python3 -m venv .venv
- source .venv/bin/activate
- pip install -r requirements.txt
# ββ Lint βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
flake8:
stage: lint
script:
- pip install flake8
- flake8 . --max-line-length=120 --exclude=.venv,__pycache__
allow_failure: false
black:
stage: lint
script:
- pip install black
- black --check --line-length 120 .
allow_failure: true # warn but don't block β formatting is advisory
# ββ Tests βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
pytest:
stage: test
script:
- pip install pytest pytest-mock pytest-cov
- pytest tests/ -v --cov=. --cov-report=term-missing --cov-fail-under=60
coverage: '/TOTAL.*\s+(\d+%)$/'
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
# ββ Security ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
semgrep:
stage: security
image: semgrep/semgrep
script:
- semgrep scan --config=auto --error .
allow_failure: true
bandit:
stage: security
script:
- pip install bandit
- bandit -r . -x .venv,tests -ll # only medium+ severity
allow_failure: true
pip-audit:
stage: security
script:
- pip install pip-audit
- pip-audit --require-hashes -r requirements.txt
allow_failure: true
secret-detection:
stage: security
script:
- pip install detect-secrets
- detect-secrets scan --baseline .secrets.baseline
allow_failure: true
safety:
stage: security
script:
- pip install safety
- safety check --full-report
allow_failure: true| Tool | What it catches | Free? |
|---|---|---|
| flake8 | PEP8 style violations, undefined variables, unused imports | β |
| black | Code formatting consistency | β |
| pytest + coverage | Unit tests + enforces β₯60% coverage gate | β |
| Semgrep | SAST β insecure patterns, injection risks, hardcoded secrets | β (free tier) |
| Bandit | Python-specific security issues (subprocess injection, weak crypto, etc.) | β |
| pip-audit | Dependency CVE scanning (like Snyk but free) | β |
| detect-secrets | Prevents API keys/passwords from being committed | β |
| Safety | Known vulnerabilities in installed packages | β |
Semgrep is the closest free equivalent to Checkmarx for Python. Run
semgrep scan --config=p/python --config=p/secrets .locally for a deeper scan. Checkmarx and Veracode offer free community editions but require account registration.
# Install all security tools
pip install bandit semgrep pip-audit detect-secrets safety flake8 black
# Run all checks in one go
flake8 . --max-line-length=120 --exclude=.venv
bandit -r . -x .venv,tests -ll
pip-audit -r requirements.txt
safety check
semgrep scan --config=auto .
# Scan for accidentally committed secrets
detect-secrets scan > .secrets.baselineFeatures planned in order of priority:
- LinkedIn + Indeed scraping across 6 EU countries
- LLM-powered CV matching (0β100% score)
- Tailored 2-paragraph cover letter per job
- Relocation/visa sponsorship detection
- SQLite deduplication (30-day window)
- HTML email digest via Resend
- Cron scheduling on VPS
A static showcase page deployed on GitHub Pages or Vercel showing:
- A live sample digest with real anonymized job data
- "How it works" visual explainer (scrape β score β cover letter β email)
- Customization guide
- Link to repo + setup instructions
No backend, no auth, zero cost. Goal: let anyone understand the project in 60 seconds without reading code.
A simple web form where you fill in your CV summary, pick target countries and job titles, set your match threshold, and download a ready-to-use config.py. No setup knowledge required β makes the project accessible to non-developers who just want to run the bot for themselves.
Send the digest as a Telegram message (via Bot API) in addition to or instead of email. Each job becomes a formatted message with inline "Apply" button. Useful for mobile-first users who live in their phone notifications. WhatsApp via Twilio sandbox is a stretch goal.
Mark jobs as "Applied", "Interview", "Rejected", or "Ignored" directly from the email (via one-click links). Builds a local SQLite log of your application history. Never see a job you already applied to again. Generates a weekly stats summary: X applied, Y responses, Z% response rate.
Each user registers with email + CV profile. The bot runs on a shared schedule and delivers personalized digests to each user. Requires: FastAPI backend, PostgreSQL (replacing SQLite), per-user job queues, Stripe for billing (~β¬5/month per user). Only built if demand is proven by demo + config generator phases.
Current scraping is fully sequential (~30s per query Γ 130 queries = 30-40 min runtime). Planned improvements:
- Country-level parallelism β scrape Tier 2/3 countries concurrently (they're lower traffic, less likely to be rate-limited)
- Indeed-only fallback β Indeed is 3-5x faster than LinkedIn per query; run Indeed in parallel while LinkedIn runs sequentially
- Smart caching β skip queries where no new jobs appeared in last 3 runs (stale country/term combos)
- Incremental
hours_oldβ first run uses 72h, subsequent runs use(hours since last run + 6h)to avoid refetching - Target runtime: under 10 minutes end-to-end
For jobs marked "Easy Apply" on LinkedIn, an optional mode that auto-fills and submits the application using the generated cover letter. Strictly opt-in, rate-limited (max 5/day), runs with human-like delays. Carries ToS risk β users acknowledge this explicitly before enabling.
Contributions are welcome β whether it's a bug fix, a new job board scraper, a better prompt, or a new feature from the roadmap.
-
Fork the repo on GitLab
-
Clone your fork
git clone https://gitlab.com/YOUR_USERNAME/job-digest.git cd job-digest -
Create a feature branch
git checkout -b feat/your-feature-name
-
Set up your dev environment
python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt pip install flake8 black bandit pytest pytest-mock -
Make your changes
-
Run tests and checks before pushing
python -m pytest tests/ -v flake8 . --max-line-length=120 --exclude=.venv bandit -r . -x .venv,tests -ll
-
Commit with a clear message
git commit -m "feat: add Indeed salary filter support" # Use: feat / fix / docs / refactor / test / chore
-
Open a Merge Request against
main
- One feature per MR β keep changes focused and reviewable
- Tests required β add or update tests for any new logic in
scrapers/,matching/,storage/, oremail_digest/ - No secrets in code β all credentials go in
.env, never hardcoded - Match existing style β the codebase uses type hints, docstrings on public functions, and f-strings
- Update
config.pycomments if you add a new tunable
| Area | Task |
|---|---|
| Scrapers | Add a new job board (StepStone, EuroEngineerJobs, Relocate.me) |
| Matching | Improve the scoring prompt β test with diverse job types |
| Add a plain-text fallback version of the digest | |
| Config | Add salary range filter support |
| Docs | Translate setup guide to German, Dutch, or Arabic |
| Tests | Increase test coverage above 80% |
| CI | Add GitHub Actions equivalent of the GitLab CI pipeline |
Open a GitLab issue with:
- Python version (
python3 --version) - OS and VPS/cloud provider
- The exact error message and full stack trace
- What you were running (
python run.py --dry-run, etc.)
MIT β use it, fork it, make it your own.
Built with Python, JobSpy, DeepSeek, Resend, and a lot of job searching frustration.