googlejobs: traverse <template> content to find apply URLs
Apply links (Indeed, Glassdoor, Monster, etc.) are pre-rendered inside a <template> tag within each card's share_el. <template> content is inert in the rendered DOM — a regular querySelectorAll from outside returns nothing, which is why the previous fix produced empty URLs. Iterate share_el's <template> elements and search their .content for links matching utm_campaign=google_jobs_apply. Verified on the live Google Jobs page that each card's template contains the correct external apply URL. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main
parent
fa748bebf9
commit
37e5b59126
Loading…
Reference in New Issue