Skip to content

Commit 910bc4d

Browse files
fix company name css selector
1 parent 95b5d50 commit 910bc4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linkedin_spider/scrapers/profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def _extract_experience_item(self, container: WebElement) -> dict[str, str]:
232232
exp_data["company_url"] = company_link.get_attribute("href")
233233

234234
company_selectors = [
235-
"a[data-field='experience_company_logo'] span[aria-hidden='true']",
235+
"a[data-field='experience_company_logo'] > span:first-of-type > span[aria-hidden='true']",
236236
"[class*='hoverable-link-text'] span[aria-hidden='true']",
237237
]
238238

0 commit comments

Comments
 (0)