TDK-99/SnapplAI
ุญูู
๐ Stop refreshing LinkedIn. This pipeline scrapes new job listings based on your settings, uses AI agents to summarize each one and score it against your CV, then delivers only the best matches straight to your inbox ๐ฌ โ so you're always first to apply ๐
ุงูุฐูุงุก ุงูุงุตุทูุงุนู ูุชุนููู ุงูุขูุฉุงููู ู ุงูู ูุงุณ ูููุฌูู
- ุฎูุงู 24 ุณุงุนุฉ
- ู
- ุฎูุงู 7 ุฃูุงู
- ุฌุงุฑู ุฌู ุน ุงูุณุฌู
- ุฎูุงู 15 ููู ูุง
- ุฌุงุฑู ุฌู ุน ุงูุณุฌู
- ุฎูุงู ุดูุฑ
- ุฌุงุฑู ุฌู ุน ุงูุณุฌู
ุชุบููุฑ ุตุงูู ุงููุฌูู ุฎูุงู ูุชุฑุงุช ู ุชุฏุงุฎูุฉุ ูููุณ ู ุฌู ูุนูุง ููู ููุง. ุชุจูู ุงูููุงุณุงุช ุงูู ูููุฏุฉ ูุงุฑุบุฉ. ุงููุฌูู ุชููุณ ุงูุงูุชู ุงู ูุง ุฌูุฏุฉ ุงูุจุฑู ุฌูุงุช.
README.md
ุงูุฃุตู๐ SnapplAI โ AI-Powered LinkedIn Job Alerts
๐ Contributing ยท โ Get Help
Stop refreshing LinkedIn. This pipeline scrapes new job listings based on your settings, uses AI agents to summarize each one and score it against your CV, then delivers only the best matches straight to your inbox ๐ฌ โ so you're always first to apply ๐
๐ Table of Contents
- The Problem
- How It Works
- Tech Stack
- Pipeline Architecture
- AI Output Fields
- Setup
- Project Structure
- Roadmap v2
- Contributing
- License
๐ฏ The Problem
Job hunting on LinkedIn is a full-time job in itself. New listings appear daily, most are irrelevant, and by the time you spot a good one, 200 people have already applied.
SnapplAI flips the game: it runs on a schedule, scrapes fresh listings, lets AI read and score every single one against your CV, and emails you only the top matches โ before the crowd even sees them.
โ๏ธ How It Works
The pipeline runs in 4 sequential steps, fully automated:
1. Scrape โ job_scraper() pulls fresh listings from LinkedIn based on your search settings (role, location, filters) using python-jobspy.
2. Summarize โ agentic_summarize() sends each job description to Gemini, which extracts structured fields (title, seniority, skills, salary, etc.) as clean JSON.
3. Analyze โ agentic_analyze() reads your CV and scores each listing on how well it matches your profile. Chain-of-thought enforced: the model writes analysis before score in the JSON schema, so reasoning comes before judgment.
4. Deliver โ send_email() builds an email with the top-scored jobs and sends it to your inbox via SMTP.
5. Apply and analytics โ Two attachments complete the report: top match, a filtered Excel with all scraped jobs, and an analytics .txt summarizing the batch.
--
Resilience: each Gemini call retries with exponential backoff on transient errors (429/500/503) and falls back through a fixed chain (gemini-3.5-flash-lite โ gemini-3.1-flash-lite), so a temporarily overloaded model no longer crashes the whole pipeline.
Key principle: AI reads and evaluates. Python orchestrates and delivers. No frameworks, no agents-calling-agents โ just a clean data pipeline with LLM calls where they matter.
๐ง Tech Stack
| Component | Technology |
|---|---|
| LLM | Google GenAI SDK โ gemini-3.5-flash-lite (primary), gemini-3.1-flash-lite (fallback) |
| Resilience | Retry with exponential backoff + fixed model fallback chain (src/llm.py) |
| Scraping | python-jobspy (LinkedIn) |
| Data | pandas, PyPDF / PyMuPDF |
| Parsing | BeautifulSoup4 |
| smtplib (SMTP) โ provider-agnostic (Gmail, Outlook/Office365, ...) | |
| Config | python-dotenv |
๐๏ธ Pipeline Architecture

The entire pipeline operates on a single pandas DataFrame that gets enriched at each step. No intermediate files, no database โ everything flows through memory.
๐ AI Output Fields

Each job in the email is ranked by fit score and includes:
- city, company, role, and work mode
- a one-line AI summary explaining the match
- a direct apply link to the LinkedIn listing
- share buttons (LinkedIn, WhatsApp, email) prefilled with the role, company and link
No matches in a run? You still get an email: it shows how many jobs each filter removed, concrete tips built from your current settings (e.g. raise hours_old, lower score_config), the same search on LinkedIn, and a short list of articles and videos to improve your job search.
Two attachments complete the report: a filtered Excel with all scraped jobs, and an analytics .txt summarizing the batch.
๐ Setup
https://github.com/user-attachments/assets/eca9adf0-cbe4-4d1c-b250-d76eccfbe799
- Get a free API key from Google AI Studio
- Generate an app password for your email (e.g. Gmail App Password). For non-Gmail providers, set
SMTP_HOST/SMTP_PORTin.envโ e.g. Outlook/Office365 usessmtp.office365.comon port587(STARTTLS); Gmail defaults tosmtp.gmail.comon465(SSL). - Place your CV (PDF) in
your_cv_config/ - Configure search settings: config your
file_config.env - Create your
.envfrom the template:cp example_env.txt .env
Deploy
Local
git clone https://github.com/TDK-99/SnapplAI.git && cd SnapplAI
pip install -r requirements.txt
# complete setup steps above
python main.py
Docker
git clone https://github.com/TDK-99/SnapplAI.git && cd SnapplAI
# complete setup steps above
docker build -t snapplai .
docker run --env-file .env snapplai
GitHub Actions
- Fork this repo (or create a private copy)
- Complete setup steps 1-4 above in your fork
- Delete the # on schedule and -cron for action auto start
- Add credentials as repository secrets (Settings โ Secrets โ Actions):
GOOGLE_API_KEY,GMAIL_USER,GMAIL_APP_PASSWORD - Actions tab โ enable workflows โ Run workflow (for manual)
๐ Project Structure
SnapplAI/
โโโ main.py # Entry point โ runs the 4-step pipeline
โโโ src/
โ โโโ daily_scraper.py # LinkedIn scraping with python-jobspy
โ โโโ ai_agents.py # Gemini calls: summarize + analyze
โ โโโ llm.py # Resilient Gemini wrapper: retry/backoff + model fallback
โ โโโ smtp.py # Email builder and SMTP sender
โ โโโ pydantic.py # pydantic class for force ai output
โโโ tests/
โ โโโ test_ai_analyze.py # Unit test for AI analysis agent
โ โโโ test_job_scraper.py # Unit test for the LinkedIn scraper
โ โโโ test_generate_resilient.py # Unit test for resilian llm api
โ โโโ test_ai_summarize.py # Unit test for AI summarize agent
โ โโโ test_pydantic.py # Unit test for pydantic validation
โ โโโ test_smtp.py # Unit test for SMTP email sending
โโโ your_cv_config/
โ โโโ .gitkeep # Keeps folder tracked in git
โ โโโ file_config.env # Your settings (role, location, filters)
โ โโโ file_config.txt # Additional config parameters
โ โโโ Your_CV.pdf # Your CV goes here (PDF)
โโโ assets/ # Output screenshots and docs images
โโโ .github/
โ โโโ workflows/
โ โโโ snapplai.yml # GitHub Actions workflow (scheduled + manual)
โ โโโ ci.yml # CI pipeline โ runs tests on push/PR
โ โโโ yml.example # Template for GitHub Actions workflow
โโโ Dockerfile # Run anywhere with Docker
โโโ .env # API keys and SMTP credentials (git-ignored)
โโโ .gitignore
โโโ example_env.txt # Template for .env variables
โโโ requirements.txt # Dependencies
โโโ CONTRIBUTING.md # Contribution guidelines
โโโ SUPPORT.md # Support and contact info
โโโ CLAUDE.md # Repo workflow standards for Claude Code
โโโ LICENSE # MIT
โโโ README.md
๐ฃ๏ธ Roadmap v2
- โ Multi-country scraping โ search across 2+ countries in a single run (custom feature, not supported by python-jobspy out of the box)
- Excel/DB deduplication โ persistent storage to compare runs and filter out already-seen listings, so you never score the same job twice
- Scoring calibration โ benchmark AI scores against known good/bad matches to improve match quality
- โ Output redesign โ better visual formatting for the email report (job cards, readability, direct links)
- โ Fix issue โ fix main issue: fallback model e smtp for non @gmail user
๐ค Contributing
Contributions are welcome โ bug fixes, new features, or docs improvements.
- Issues โ Report bugs or suggest features
- Pull Requests โ Fork, build, submit
๐ License
MIT โ see LICENSE
ุงุณุชูุดู ู ุดุงุฑูุน ู ุดุงุจูุฉ ูู ุฑุชุจุทุฉ
ุฌุงุฑู ุงูุชุญู ููโฆ