Let discovery find a SuccessFactors board from a role, landing or search link

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Sonnet 5.5 committed 2026-09-29 20:12:13 +02:00
1 parent 9d915ab09a
commit 679d9ec938
2 files changed
+27 -7

No files matched your search

+11 -7
View File
@@ -56,14 +56,18 @@ from ._shared import Get, Page, Row, is_web_url, only, parse_dt
NAME = "successfactors"
LABEL = "SuccessFactors"
# A career site is on the company's own domain and names no SuccessFactors
# host. Discovery can therefore read a board only off a page that links a
# role, `/job/<title>/<id>` with the numeric requisition id, and it takes the
# host and a brand segment from that link. A page that only links the back end
# (`career5.successfactors.eu`, as Bang & Olufsen's does) or loads the sites'
# image CDN names the host with no slug, which keeps the company on the list
# of hosts the app names but has no board for.
# host, so discovery can read a board only off an absolute link to one of its
# own paths that no other site has: a role, `/job/<title>/<numeric id>/`, a
# landing page, `/go/<name>/<numeric id>/`, or a search with the query keys the
# sites' own forms send (`createNewAlert`, `locationsearch`, `optionsFacetsDD_`).
# The host and a brand segment before the path are the slug. A page that only
# links the back end (`career5.successfactors.eu`, as Bang & Olufsen's does) or
# loads the sites' image CDN names the host with no slug, which keeps the
# company on the list of hosts the app names but has no board for.
PATTERNS = (
r"https?://([a-z0-9-]+(?:\.[a-z0-9-]+)+)(?:/([A-Za-z0-9_-]+))?/job/[^/\s\"'<>?#]+/\d{9,10}/",
r"https?://([a-z0-9-]+(?:\.[a-z0-9-]+)+)(?:/([A-Za-z0-9_-]+))?"
r"/(?:job/[^/\s\"'<>?#]+/\d{9,10}/|go/[^/\s\"'<>?#]+/\d{6,}/"
r"|search/\?[^\s\"'<>]*(?:createNewAlert|locationsearch|optionsFacetsDD_))",
r"(?:career|jobs|performancemanager)\d*\.successfactors\.(?:eu|com)|\.sapsf\.(?:eu|com)"
r"|rmkcdn\.successfactors\.com",
)