diff --git a/linkedin_scraper/person.py b/linkedin_scraper/person.py index 86d169e..1a324d6 100644 --- a/linkedin_scraper/person.py +++ b/linkedin_scraper/person.py @@ -127,6 +127,8 @@ def get_experiences(self): position_summary_text = position_details_list[1] if len(position_details_list) > 1 else None outer_positions = position_summary_details.find_element(By.XPATH,"*").find_elements(By.XPATH,"*") + company = "" + work_times = "" if len(outer_positions) == 4: position_title = outer_positions[0].find_element(By.TAG_NAME,"span").text company = outer_positions[1].find_element(By.TAG_NAME,"span").text