@@ -128,19 +128,19 @@ def get_experiences(self):
128128 outer_positions = position_summary_details .find_element (By .XPATH ,"*" ).find_elements (By .XPATH ,"*" )
129129
130130 if len (outer_positions ) == 4 :
131- position_title = outer_positions [0 ].find_element (By .TAG_NAME ,"span" ).find_element ( By . TAG_NAME , "span" ). text
131+ position_title = outer_positions [0 ].find_element (By .TAG_NAME ,"span" ).text
132132 company = outer_positions [1 ].find_element (By .TAG_NAME ,"span" ).text
133133 work_times = outer_positions [2 ].find_element (By .TAG_NAME ,"span" ).text
134134 location = outer_positions [3 ].find_element (By .TAG_NAME ,"span" ).text
135135 elif len (outer_positions ) == 3 :
136136 if "·" in outer_positions [2 ].text :
137- position_title = outer_positions [0 ].find_element (By .TAG_NAME ,"span" ).find_element ( By . TAG_NAME , "span" ). text
137+ position_title = outer_positions [0 ].find_element (By .TAG_NAME ,"span" ).text
138138 company = outer_positions [1 ].find_element (By .TAG_NAME ,"span" ).text
139139 work_times = outer_positions [2 ].find_element (By .TAG_NAME ,"span" ).text
140140 location = ""
141141 else :
142142 position_title = ""
143- company = outer_positions [0 ].find_element (By .TAG_NAME ,"span" ).find_element ( By . TAG_NAME , "span" ). text
143+ company = outer_positions [0 ].find_element (By .TAG_NAME ,"span" ).text
144144 work_times = outer_positions [1 ].find_element (By .TAG_NAME ,"span" ).text
145145 location = outer_positions [2 ].find_element (By .TAG_NAME ,"span" ).text
146146
@@ -213,7 +213,7 @@ def get_educations(self):
213213 position_summary_text = position_details_list [1 ] if len (position_details_list ) > 1 else None
214214 outer_positions = position_summary_details .find_element (By .XPATH ,"*" ).find_elements (By .XPATH ,"*" )
215215
216- institution_name = outer_positions [0 ].find_element (By .TAG_NAME ,"span" ).find_element ( By . TAG_NAME , "span" ). text
216+ institution_name = outer_positions [0 ].find_element (By .TAG_NAME ,"span" ).text
217217 degree = outer_positions [1 ].find_element (By .TAG_NAME ,"span" ).text
218218
219219 if len (outer_positions ) > 2 :
0 commit comments