fix(scraper): correct quotation escape in smart_careers_crawler regex

This commit is contained in:
JobsBoard Deployer 2026-09-05 12:26:54 -04:00
parent 5792a79377
commit fb3d886527

View file

@ -111,7 +111,7 @@ class SmartCareersCrawler:
if provider and slug:
return provider, slug, r.url
links = re.findall(r"href=['"]([^'"]*(?:career|jobs|work-at|join|greenhouse|lever|ashby)[^'"]*)['"]", r.text, re.IGNORECASE)
links = re.findall(r'href=[\'"]([^\'"]*(?:career|jobs|work-at|join|greenhouse|lever|ashby)[^\'"]*)[\'"]', r.text, re.IGNORECASE)
for link in links[:5]:
target = link if link.startswith("http") else urljoin(base_url, link)
provider, slug = self.detect_ats_from_url_or_html(target)