From f71177592a6cad3f7efea395ab963fe882420536 Mon Sep 17 00:00:00 2001 From: Forrest Iandola Date: Tue, 1 Feb 2022 09:55:50 -0800 Subject: [PATCH] update artdeco to p5 mb4 --- linkedin_scraper/company.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkedin_scraper/company.py b/linkedin_scraper/company.py index f314125..1947d44 100644 --- a/linkedin_scraper/company.py +++ b/linkedin_scraper/company.py @@ -205,7 +205,7 @@ def scrape_logged_in(self, get_employees = True, close_on_complete = True): section_id = 3 #section ID is no longer needed, we are using class name now. #grid = driver.find_elements_by_tag_name("section")[section_id] - grid = driver.find_element_by_class_name("artdeco-card.p4.mb3") + grid = driver.find_element_by_class_name("artdeco-card.p5.mb4") print(grid) descWrapper = grid.find_elements_by_tag_name("p") if len(descWrapper) > 0: @@ -346,6 +346,6 @@ def __repr__(self): _output['founded'] = self.founded _output['affiliated_companies'] = self.affiliated_companies _output['employees'] = self.employees - + return json.dumps(_output).replace('\n', '')