JobFlow

Python pipeline that turns job alerts from several providers into a single, deduplicated, always up-to-date Google Sheet.

Latest change: Added a new alert provider, JobLeads

Recruiter view

JobFlow tracking sheet in Google Sheets, one row per offer with its ID, date, provider, title and company
See the screenshot at full size
Problem
Job alerts arrive by email from seven providers, up to a dozen a day, and the same offer is often relayed by several of them. Tracking them by hand wasted time and lost offers.
What was built
A Python pipeline that fetches the alerts from Gmail, parses each offer according to its provider's format, removes duplicates across providers, sets aside irrelevant offers and feeds a Google Sheet. A gate blocks the sync until any error has been checked.
Result
I use it daily as the tracking sheet of my job search. About 900 historical emails were migrated into the new system.
Skills
Data pipelines, Python, Quality and testing, Google APIs
Stack
Python, Gmail API, Google Sheets API, pytest, GitHub Actions

Lead dev view

JobFlow was born out of a very concrete annoyance: every morning, a pile of job alerts, half of them announcing the same offer in three different outfits. I ended up writing the pipeline I wish I had found.

Architecture

JobFlow flow: alerts in Gmail, Gmail API fetch, JSON ledger by Message-ID, per-provider parsing, deduplication and filters, error gate, then Google Sheets

The pipeline chains five independent stages: fetching the emails through the Gmail API, renaming and indexing them, extracting the offers, syncing to Google Sheets, then tidying Gmail (emails marked as read, labeled and archived). Each stage is a standalone script, with its own dry-run mode. They share a single state: a JSON ledger keyed by each email's Message-ID, which knows what has already been processed. An orchestrator chains them and stops at the first error, so a stage never works on a state left inconsistent by the previous one. Before anything is written to the sheet, a gate stops the pipeline run if the previous sync failed.

Key decisions

A difficulty

The gate did exactly its job: a sync failed, the pipeline stopped, and once the error was acknowledged, everything started again. Except that the next sync only read the import file of the day. The offers of the failed day were never imported again: 69 rows were missing from the sheet, without a single error message.

So the flaw was not in the gate, but in the assumption it protected: "each day imports its own offers". I wrote a recovery script that compares the sheet with the full history of imports, finds the gaps and fills them, while staying idempotent like the rest of the pipeline. The lesson stuck: a gate protects against the error you planned for, not against the one you did not imagine.

Quality

The project is covered by a pytest suite, run on every change by a GitHub Actions CI, with coverage tracked on Codecov; the README badges give the current figures. The split of the parser, originally a single file of about 1100 lines, was done test first: characterization tests written against the old code served as a safety net throughout the move. The architecture choices are recorded in ADRs, and an operations guide describes the known incidents and how to resolve them.

Timeline

What I would do differently

I would plan the filtering of irrelevant listings from the start. Providers often slip into their alerts offers that have nothing to do with the original search, for commercial reasons of their own. I discovered it through use and added the filters afterwards (blacklist, internships and work-study, offers outside my stack or my profile), each with its own backfill script to reclassify the rows already imported. Planned from the start, this sorting would have been a stage of the pipeline in its own right, rather than a series of fixes.

Architecture decisions (ADR)