fix(scraper): correct quotation escape in smart_careers_crawler regex
This commit is contained in:
parent
5792a79377
commit
fb3d886527
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue