Skip to content

Commit 37bdaeb

Browse files
committed
fixed person.py working as of 18 May
1 parent 98cde77 commit 37bdaeb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

linkedin_scraper/person.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ def get_educations(self):
215215
outer_positions = position_summary_details.find_element(By.XPATH,"*").find_elements(By.XPATH,"*")
216216

217217
institution_name = outer_positions[0].find_element(By.TAG_NAME,"span").text
218-
degree = outer_positions[1].find_element(By.TAG_NAME,"span").text
218+
if len(outer_positions) > 1:
219+
degree = outer_positions[1].find_element(By.TAG_NAME,"span").text
220+
else:
221+
degree = None
219222

220223
if len(outer_positions) > 2:
221224
times = outer_positions[2].find_element(By.TAG_NAME,"span").text

0 commit comments

Comments
 (0)