Skip to content

Commit c3379a4

Browse files
authored
fix(hellowork): read the title and company from the new span markup (#433)
1 parent 8dd83cd commit c3379a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎jobspy/hellowork/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def _process_job(self, card: Tag) -> JobPost | None:
154154
if link is None:
155155
raise ValueError("no title link")
156156
label = str(link["aria-label"])
157-
title, *company = (p.get_text(strip=True) for p in link.select("h3 p"))
157+
title, *company = (p.get_text(strip=True) for p in link.select("h3 p, h3 span"))
158158
contract = card.select_one("div[data-cy=contractCard]")
159159
if contract is None or contract.parent is None:
160160
raise ValueError("no contract")

0 commit comments

Comments
 (0)