Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions docs/JOB_SOURCES.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,21 @@ paste-only or go through the Chrome extension.
## Covered today (`tools/job_sources.py`)

- **Company boards (watchlist):** Greenhouse, Lever (incl. the EU host),
Ashby, SmartRecruiters.
- **Aggregators:** Arbeitnow, Remotive, RemoteOK, HN "Who is hiring",
Adzuna (key).
Ashby, SmartRecruiters, **Personio, Teamtailor (incl. custom domains),
Recruitee, Workable, Pinpoint, Softgarden**.
- **Board detection:**
- **From the company's careers page** (reliable): reads which ATS the
page embeds.
- **By name:** returns every board answering to the name's slugs, with
sample titles to confirm. A slug isn't an identity: Lever's "iqm" is an
unrelated New York company.
- **Aggregators:** **GermanTechJobs / SwissDevJobs / DevITjobs.uk** (salary
on every item; the feeds follow your profile's countries), Arbeitnow,
Remotive, RemoteOK, HN "Who is hiring", Adzuna (key).
- **Open web:** Claude web search (`services.discovery.web_discover`).
- **Watchlist title filter:** posts on your watchlist need only half of a
target title's core terms, so adjacent roles at companies you chose still
surface.

Spot-checking real DE deeptech careers pages [V] shows much of the field is
already reachable:
Expand All @@ -27,6 +38,9 @@ Personio.

## Next sources, in implementation order

Items 1–7 shipped on 2026-10-20 (see above). Still to do: Reed, Workday, JOIN,
and the remote-EU extras.

| # | Source | Endpoint | Auth | Data | Terms | Effort |
|---|---|---|---|---|---|---|
| 1 | **Personio** | `GET https://{slug}.jobs.personio.de/xml?language=en` [V] | none | full HTML description, offices, department, seniority, employment type; no salary | URL shown in Personio dev docs; robots `Allow: /` [V] | S |
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies = [
"bcrypt>=4.1.0",
"beautifulsoup4>=4.13.3",
"cryptography>=41.0.0",
"defusedxml>=0.7", # third-party XML/RSS job feeds (tools/job_sources)
"fastapi>=0.110.0",
"fpdf2>=2.8.7",
"openai>=1.65.1",
Expand Down
27 changes: 22 additions & 5 deletions services/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

logger = logging.getLogger(__name__)

DEFAULT_SOURCES = ("watchlist", "arbeitnow", "remotive", "remoteok", "hn")
DEFAULT_SOURCES = ("watchlist", "devjobs", "arbeitnow", "remotive", "remoteok", "hn")
TRIAGE_BATCH = 8
_DESCRIPTION_CAP = 20_000

Expand Down Expand Up @@ -148,7 +148,7 @@ def title_match(job_title: str, targets: Iterable[str]) -> float:
re.IGNORECASE,
)
_WORLDWIDE = re.compile(r"worldwide|anywhere|global", re.IGNORECASE)
_MONEY_RE = re.compile(r"(\d{1,3}(?:[,.\s]\d{3})+|\d+(?:\.\d+)?)\s*([kK])?")
_MONEY_RE = re.compile(r"(\d{1,3}(?:[,.\s'’]\d{3})+|\d+(?:\.\d+)?)\s*([kK])?")
_CURRENCIES = {"€": "EUR", "eur": "EUR", "£": "GBP", "gbp": "GBP", "$": "USD", "usd": "USD", "chf": "CHF"}


Expand Down Expand Up @@ -195,7 +195,7 @@ def parse_salary_max(text: str) -> Tuple[Optional[float], Optional[str]]:
currency = next((code for sym, code in _CURRENCIES.items() if sym in text.lower()), None)
values = []
for num, k in _MONEY_RE.findall(text):
v = float(re.sub(r"[,.\s](?=\d{3}\b)", "", num).replace(",", ""))
v = float(re.sub(r"[,.\s'’](?=\d{3}\b)", "", num).replace(",", ""))
if k:
v *= 1000
if re.search(r"per month|/month|monthly|/mo\b", text, re.IGNORECASE):
Expand Down Expand Up @@ -283,6 +283,16 @@ def _adzuna_countries(profile: CandidateProfile) -> List[str]:
return list(dict.fromkeys(codes))[:3] or ["gb", "de"]


def _devjobs_countries(profile: CandidateProfile) -> List[str]:
"""DevJobs feeds for the profile's countries (all three when unknown, or
for remote-only searches, where any of them may hire remotely)."""
text = " ".join(profile.locations).lower()
codes = [c for p, c in _COUNTRY_CODES if re.search(p, text) and c in job_sources.DEVJOBS_FEEDS]
if not codes or profile.work_modes == ["remote"]:
return list(job_sources.DEVJOBS_FEEDS)
return list(dict.fromkeys(codes))


def _search_terms(profile: CandidateProfile) -> List[str]:
"""Target titles without seniority words, as typed ("Senior ML Engineer" -> "ML Engineer")."""
terms = [
Expand All @@ -309,6 +319,9 @@ def _source_tasks(profile: CandidateProfile, sources: Iterable[str]) -> List[Tup
tasks.append(("remoteok", job_sources.remoteok))
if "hn" in wanted:
tasks.append(("hn", job_sources.hn_whos_hiring))
if "devjobs" in wanted:
for country in _devjobs_countries(profile):
tasks.append((f"devjobs:{country}", partial(job_sources.devjobs, country)))
if "adzuna" in wanted and job_sources.adzuna_available():
for country in _adzuna_countries(profile):
for term in _search_terms(profile)[:2]:
Expand Down Expand Up @@ -337,10 +350,14 @@ def gather(profile: CandidateProfile, sources: Iterable[str]) -> Tuple[List[Tupl
def prefilter(task: str, lead: JobLead, profile: CandidateProfile, now: Optional[datetime] = None) -> bool:
if not lead.title or not lead.url:
return False
from_watchlist = task.split(":", 1)[0] in job_sources.BOARD_FETCHERS
targets = profile.target_titles or profile.search_keywords
if targets and title_match(lead.title, targets) < 0.66:
# Companies on the watchlist were chosen deliberately, so adjacent roles
# there ("Quantum Engineer" for a software engineer) are worth a look:
# half the core title terms is enough; triage judges the actual fit.
threshold = 0.5 if from_watchlist else 0.66
if targets and title_match(lead.title, targets) < threshold:
return False
from_watchlist = task.split(":", 1)[0] in job_sources.BOARD_FETCHERS
if not from_watchlist and lead.posted_at:
age = (now or datetime.utcnow()) - lead.posted_at
if age > timedelta(days=profile.max_posting_age_days):
Expand Down
5 changes: 3 additions & 2 deletions services/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

from db.models import CandidateProfile as ProfileRow
from db.session import get_session
from tools.job_sources import BOARD_FETCHERS
from utils.llm import get_completion
from utils.security import wrap_untrusted
from utils.text import strip_code_fence
Expand All @@ -35,8 +36,8 @@

WORK_MODES = ("remote", "hybrid", "onsite")
COMPANY_STAGES = ("startup", "scale-up", "enterprise", "public sector", "non-profit")
# Supported company-board providers for the watchlist (tools.job_sources).
WATCHLIST_ATS = ("greenhouse", "lever", "ashby", "smartrecruiters")
# Supported company-board providers for the watchlist.
WATCHLIST_ATS = tuple(BOARD_FETCHERS)


class ProfileError(ValueError):
Expand Down
Loading
Loading