Hosts a to l declare READS: places, teaser, stated seniority and employment

Ashby, BambooHR, Deel, Eightfold, Gem, Greenhouse, HiBob, HR Manager, Jibe,
Jobylon and Lever move to feed_url(slug, ask) and page(get, slug, cursor, ask),
declare READS with the robots decision, and drop robots_page. Rows carry
places (Ashby secondaryLocations, Lever allLocations, Greenhouse offices in
place of a Hybrid placeholder), Jobylon keeps its summary as teaser and maps
experience and employment, Eightfold reads creationTs as the posting date and
Ashby reads workplaceType. Fixtures <name>-places.* and jobylon-teaser.html
drive the conformance checks; the eleven names leave UNDECLARED.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-30 09:11:53 +02:00
1 parent 4c0da58da7
commit f2e652a8da
35 files changed
+1290 -391

No files matched your search

+18 -12
View File
@@ -10,12 +10,13 @@ without `take` it answers the first 25 roles whatever the board holds, and
`flyingtiger` does).
robots.txt: the portal's own pages on candidate.hr-manager.net disallow
everything for `*` except the application form, and so `robots_page` is the
feed's URL, on the API host, which has no robots.txt (a 404, which allows).
The feed is the interface HR Manager publishes for readers like this one; the
portal's HTML list, which the robots.txt does shut out, is never read. The
role's link is the application form the robots.txt names as allowed, and is
only shown, not fetched.
everything for `*` except the application form. The feed is on the API host,
which has no robots.txt (a 404, which allows); it is the interface HR Manager
publishes for readers like this one, and the portal's HTML list, which the
robots.txt does shut out, is never read. The role's link is the application
form the robots.txt names as allowed, and is only shown, not fetched. The
declaration says "disallowed" all the same, and the owner decides whether the
feed is read.
"""
from __future__ import annotations
@@ -28,7 +29,15 @@ from typing import Any
from desk.sources import strip_html
from ._shared import Get, Page, Row, is_web_url, only, parse_dt
from ._contract import Ask, Fields, Reads, Row
from ._shared import Get, Page, is_web_url, only, parse_dt
READS = Reads(
scope="board", listing="paged", page_size=100, text="listing", complete="end",
places="one",
fields=Fields(posted="listed"),
robots="disallowed by robots.txt; owner to decide",
)
NAME = "hrmanager"
LABEL = "HR Manager"
@@ -64,11 +73,7 @@ def _feed(slug: str, skip: int) -> str:
f"?incads=true&skip={skip}&take={PAGE_SIZE}")
def robots_page(slug: str) -> str:
return _feed(slug, 0)
def page(get: Get, slug: str, cursor: Any) -> Page:
def page(get: Get, slug: str, cursor: Any, ask: Ask) -> Page:
skip = int(cursor or 0)
items = _items(get(_feed(slug, skip), headers={"Accept": "application/rss+xml"}))
results = [{"id": item.findtext("guid") or item.findtext("link") or ""} for item in items]
@@ -103,6 +108,7 @@ def rows(items: list[ET.Element], slug: str) -> list[Row]:
out.append({
"source_id": (item.findtext("guid") or url).strip(),
"title": title,
"places": [],
"location": "",
"url": url,
"posted": parse_dt(item.findtext("pubDate")),