From 86c5849541b407a28676232251732bb0c6724202 Mon Sep 17 00:00:00 2001 From: GrimsGreen <156634727+GrimsGreen@users.noreply.github.com> Date: Sun, 4 Aug 2024 06:27:31 +0330 Subject: [PATCH] Fix company_name parser (#35) --- staffspy/linkedin/linkedin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staffspy/linkedin/linkedin.py b/staffspy/linkedin/linkedin.py index c5249b3..d282f4f 100644 --- a/staffspy/linkedin/linkedin.py +++ b/staffspy/linkedin/linkedin.py @@ -117,7 +117,7 @@ def get_company_id_and_staff_count(self, company_name: str): company_id = company["trackingInfo"]["objectUrn"].split(":")[-1] try: - company_name = re.search(r'/company/([^/]+)', company['url']).group(1) + company_name = company["universalName"] except: pass